Author: tkreuzer
Date: Sun May 17 16:26:23 2015
New Revision: 67815
URL:
http://svn.reactos.org/svn/reactos?rev=67815&view=rev
Log:
[WIN32K]
Add debug prints to NtGdiPathToRegion
Modified:
trunk/reactos/win32ss/gdi/ntgdi/path.c
Modified: trunk/reactos/win32ss/gdi/ntgdi/path.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/path.c?r…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/path.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/path.c [iso-8859-1] Sun May 17 16:26:23 2015
@@ -2703,6 +2703,7 @@
pDc = DC_LockDc(hDC);
if (!pDc)
{
+ DPRINT1("Failed to lock DC %p\n", hDC);
EngSetLastError(ERROR_INVALID_PARAMETER);
return NULL;
}
@@ -2712,6 +2713,7 @@
pPath = PATH_LockPath(pDc->dclevel.hPath);
if (!pPath)
{
+ DPRINT1("Failed to lock DC path %p\n", pDc->dclevel.hPath);
DC_UnlockDc(pDc);
return NULL;
}
@@ -2719,6 +2721,7 @@
if (pPath->state != PATH_Closed)
{
// FIXME: Check that setlasterror is being called correctly
+ DPRINT1("Path is not closed!\n");
EngSetLastError(ERROR_CAN_NOT_COMPLETE);
}
else
@@ -2727,6 +2730,7 @@
Rgn = REGION_AllocUserRgnWithHandle(1);
if (!Rgn)
{
+ DPRINT1("Failed to allocate a region\n");
PATH_UnlockPath(pPath);
DC_UnlockDc(pDc);
return NULL;
@@ -2740,6 +2744,7 @@
}
else
{
+ DPRINT1("PATH_PathToRegion failed\n");
REGION_Delete(Rgn);
hrgnRval = NULL;
}