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/ob…
==============================================================================
--- 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))
{