[ros-diffs] [jimtabor] 29366: Add dprint to debug the change to ownership for shutdown. Also free fake save DC if all window DCE are free.

jimtabor at svn.reactos.org jimtabor at svn.reactos.org
Wed Oct 3 02:39:21 CEST 2007


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/ntuser/windc.c?rev=29366&r1=29365&r2=29366&view=diff
==============================================================================
--- 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;
 }
 




More information about the Ros-diffs mailing list