[ros-diffs] [jimtabor] 31111: Prevent crash in gdibatch.

jimtabor at svn.reactos.org jimtabor at svn.reactos.org
Sun Dec 9 19:45:14 CET 2007


Author: jimtabor
Date: Sun Dec  9 21:45:13 2007
New Revision: 31111

URL: http://svn.reactos.org/svn/reactos?rev=31111&view=rev
Log:
Prevent crash in gdibatch.

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

Modified: trunk/reactos/subsystems/win32/win32k/objects/gdibatch.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/objects/gdibatch.c?rev=31111&r1=31110&r2=31111&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/gdibatch.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/gdibatch.c Sun Dec  9 21:45:13 2007
@@ -65,7 +65,7 @@
 {
   PDC dc = NULL;
   PDC_ATTR Dc_Attr = NULL;
-  if (hDC)
+  if (hDC && !IsObjectDead(hDC))
   {
     dc = DC_LockDc(hDC);
     if (dc)




More information about the Ros-diffs mailing list