Author: jimtabor
Date: Wed Oct 3 04:39:20 2007
New Revision: 29366
URL:
http://svn.reactos.org/svn/reactos?rev=29366&view=rev
Log:
Add dprint to debug the change to ownership for shutdown. Also free fake save DC if all
window DCE are free.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/windc.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/windc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/windc.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/windc.c Wed Oct 3 04:39:20 2007
@@ -652,6 +652,7 @@
if(Force && !GDIOBJ_OwnedByCurrentProcess(GdiHandleTable, pdce->hDC))
{
+ DPRINT1("Change ownership for DCE!\n");
DC_SetOwnership( pdce->hDC, PsGetCurrentProcess());
}
@@ -663,6 +664,12 @@
DCE_Cleanup(pdce);
ExFreePoolWithTag(pdce, TAG_PDCE);
+
+ if (FirstDce == NULL)
+ {
+ ExFreePoolWithTag(defaultDCstate, TAG_DC);
+ defaultDCstate = NULL;
+ }
return ret;
}