mirror of
https://github.com/reactos/reactos.git
synced 2025-07-25 23:53:43 +00:00
[WIN32K]
Add debugprints to some region and path functions. svn path=/trunk/; revision=67811
This commit is contained in:
parent
635d9ca5a2
commit
e59b02d08f
2 changed files with 11 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue