- Consider the return value from IntFillArc in IntArc. CID
1237076
- Remove an useless check in ENTRY_ReferenceEntryByHandle CID 731587
- Prevent an unlikely memory leak in PATH_WidenPath. CID 716634
- Minor cleanup.
svn path=/trunk/; revision=73878
arctype);
}
- ret = IntDrawArc( dc,
- RectBounds.left,
- RectBounds.top,
- abs(RectBounds.right-RectBounds.left), // Width
- abs(RectBounds.bottom-RectBounds.top), // Height
- AngleStart,
- AngleEnd,
- arctype,
- pbrPen);
+ if(ret)
+ {
+ ret = IntDrawArc( dc,
+ RectBounds.left,
+ RectBounds.top,
+ abs(RectBounds.right-RectBounds.left), // Width
+ abs(RectBounds.bottom-RectBounds.top), // Height
+ AngleStart,
+ AngleEnd,
+ arctype,
+ pbrPen);
+ }
psurf = dc->dclevel.pSurface;
if (NULL == psurf)
Rect r1, r2;
int result = 1;
-// START_DEBUG();
-
if ((r.width <= 2) || (r.height <= 2))
return app_fill_rect(g, r, pbrush, TRUE);
Rect r1, r2;
int result = 1;
-// START_DEBUG();
-
if ((r.width <= 2) || (r.height <= 2))
return app_fill_rect(g, r, pbrush, FALSE);
/* Line descriptions */
POINT p0, p1, p2;
-// START_DEBUG();
-
/* If angles differ by 360 degrees or more, close the shape */
if ((start_angle + 360 <= end_angle) ||
(start_angle - 360 >= end_angle))
/* Line descriptions */
POINT p0, p1, p2;
-// START_DEBUG();
-
/* If angles differ by 360 degrees or more, close the shape */
if ((start_angle + 360 <= end_angle) ||
(start_angle - 360 >= end_angle))
/* Get the handle index and check if its too big */
ulIndex = GDI_HANDLE_GET_INDEX(hobj);
- if (ulIndex >= GDI_HANDLE_COUNT) return NULL;
/* Get pointer to the entry */
pentry = &gpentHmgr[ulIndex];
DPRINT1("Expected PT_MOVETO %s, got path flag %c\n",
i == 0 ? "as first point" : "after PT_CLOSEFIGURE",
flat_path->pFlags[i]);
+ if (pStrokes)
+ ExFreePoolWithTag(pStrokes, TAG_PATH);
PATH_UnlockPath(flat_path);
PATH_Delete(flat_path->BaseObject.hHmgr);
return FALSE;
break;
default:
DPRINT1("Got path flag %c\n", flat_path->pFlags[i]);
+ if (pStrokes)
+ ExFreePoolWithTag(pStrokes, TAG_PATH);
PATH_UnlockPath(flat_path);
PATH_Delete(flat_path->BaseObject.hHmgr);
return FALSE;