Add debugprints to some region and path functions.

svn path=/trunk/; revision=67811
This commit is contained in:
Timo Kreuzer 2015-05-17 14:34:49 +00:00
parent 635d9ca5a2
commit e59b02d08f
2 changed files with 11 additions and 1 deletions

View file

@ -1252,6 +1252,7 @@ PATH_PathToRegion(
if (numStrokes == 0)
{
DPRINT1("numStrokes is 0\n");
return FALSE;
}
@ -1259,6 +1260,7 @@ PATH_PathToRegion(
pNumPointsInStroke = ExAllocatePoolWithTag(PagedPool, sizeof(ULONG) * numStrokes, TAG_PATH);
if (!pNumPointsInStroke)
{
DPRINT1("Failed to allocate %lu strokes\n", numStrokes);
EngSetLastError(ERROR_NOT_ENOUGH_MEMORY);
return FALSE;
}
@ -1285,6 +1287,10 @@ PATH_PathToRegion(
pNumPointsInStroke,
numStrokes,
nPolyFillMode);
if (!Ret)
{
DPRINT1("REGION_SetPolyPolygonRgn failed\n");
}
/* Free memory for number-of-points-in-stroke array */
ExFreePoolWithTag(pNumPointsInStroke, TAG_PATH);

View file

@ -3253,7 +3253,10 @@ REGION_SetPolyPolygonRgn(
/* Check if iMode is valid */
if ((iMode != ALTERNATE) && (iMode != WINDING))
{
DPRINT1("Invalid iMode: %lu\n", iMode);
return FALSE;
}
/* Special case a rectangle */
if (((cPolygons == 1) && ((pcPoints[0] == 4) ||
@ -3283,6 +3286,7 @@ REGION_SetPolyPolygonRgn(
TAG_REGION);
if (pETEs == NULL)
{
DPRINT1("Failed to allocate %lu edge entries\n", total);
return FALSE;
}
@ -3320,7 +3324,7 @@ REGION_SetPolyPolygonRgn(
TAG_REGION);
if (tmpPtBlock == NULL)
{
DPRINT1("Can't alloc tPB\n");
DPRINT1("Can't alloc tmpPtBlock\n");
ExFreePoolWithTag(pETEs, TAG_REGION);
return FALSE;
}