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