[ros-diffs] [jimtabor] 30833: Check first to see if the DC handle is dead, if so return true.

jimtabor at svn.reactos.org jimtabor at svn.reactos.org
Wed Nov 28 09:35:47 CET 2007


Author: jimtabor
Date: Wed Nov 28 11:35:47 2007
New Revision: 30833

URL: http://svn.reactos.org/svn/reactos?rev=30833&view=rev
Log:
Check first to see if the DC handle is dead, if so return true.

Modified:
    trunk/reactos/subsystems/win32/win32k/objects/dc.c

Modified: trunk/reactos/subsystems/win32/win32k/objects/dc.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/objects/dc.c?rev=30833&r1=30832&r2=30833&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/dc.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/dc.c Wed Nov 28 11:35:47 2007
@@ -940,6 +940,8 @@
 
   if (GDI_HANDLE_GET_TYPE(DCHandle) != GDI_OBJECT_TYPE_DC)
      return NtGdiDeleteObject((HGDIOBJ) DCHandle);
+
+  if(IsObjectDead((HGDIOBJ)DCHandle)) return TRUE;
 
   if (!GDIOBJ_OwnedByCurrentProcess(GdiHandleTable, DCHandle))
     {




More information about the Ros-diffs mailing list