From e59b02d08faf71fc39852f40a3d88d92bb3e4efd Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sun, 17 May 2015 14:34:49 +0000 Subject: [PATCH] [WIN32K] Add debugprints to some region and path functions. svn path=/trunk/; revision=67811 --- reactos/win32ss/gdi/ntgdi/path.c | 6 ++++++ reactos/win32ss/gdi/ntgdi/region.c | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/reactos/win32ss/gdi/ntgdi/path.c b/reactos/win32ss/gdi/ntgdi/path.c index eb5606bc06b..ec90a678ae1 100644 --- a/reactos/win32ss/gdi/ntgdi/path.c +++ b/reactos/win32ss/gdi/ntgdi/path.c @@ -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); diff --git a/reactos/win32ss/gdi/ntgdi/region.c b/reactos/win32ss/gdi/ntgdi/region.c index ea0ef84ef51..1abf06198ea 100644 --- a/reactos/win32ss/gdi/ntgdi/region.c +++ b/reactos/win32ss/gdi/ntgdi/region.c @@ -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; }