Author: tkreuzer Date: Sun May 17 14:34:49 2015 New Revision: 67811
URL: http://svn.reactos.org/svn/reactos?rev=67811&view=rev Log: [WIN32K] Add debugprints to some region and path functions.
Modified: trunk/reactos/win32ss/gdi/ntgdi/path.c trunk/reactos/win32ss/gdi/ntgdi/region.c
Modified: trunk/reactos/win32ss/gdi/ntgdi/path.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/path.c?re... ============================================================================== --- trunk/reactos/win32ss/gdi/ntgdi/path.c [iso-8859-1] (original) +++ trunk/reactos/win32ss/gdi/ntgdi/path.c [iso-8859-1] Sun May 17 14:34:49 2015 @@ -1252,6 +1252,7 @@
if (numStrokes == 0) { + DPRINT1("numStrokes is 0\n"); return FALSE; }
@@ -1259,6 +1260,7 @@ 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 @@ pNumPointsInStroke, numStrokes, nPolyFillMode); + if (!Ret) + { + DPRINT1("REGION_SetPolyPolygonRgn failed\n"); + }
/* Free memory for number-of-points-in-stroke array */ ExFreePoolWithTag(pNumPointsInStroke, TAG_PATH);
Modified: trunk/reactos/win32ss/gdi/ntgdi/region.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/region.c?... ============================================================================== --- trunk/reactos/win32ss/gdi/ntgdi/region.c [iso-8859-1] (original) +++ trunk/reactos/win32ss/gdi/ntgdi/region.c [iso-8859-1] Sun May 17 14:34:49 2015 @@ -3253,7 +3253,10 @@
/* 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 @@ TAG_REGION); if (pETEs == NULL) { + DPRINT1("Failed to allocate %lu edge entries\n", total); return FALSE; }
@@ -3320,7 +3324,7 @@ TAG_REGION); if (tmpPtBlock == NULL) { - DPRINT1("Can't alloc tPB\n"); + DPRINT1("Can't alloc tmpPtBlock\n"); ExFreePoolWithTag(pETEs, TAG_REGION); return FALSE; }