Author: cwittich
Date: Tue Dec 4 18:31:11 2007
New Revision: 30997
URL:
http://svn.reactos.org/svn/reactos?rev=30997&view=rev
Log:
check for a valid dc before accessing Dc_Attr
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 Tue Dec 4 18:31:11 2007
@@ -88,6 +88,7 @@
case GdiBCSetBrushOrg:
{
PGDIBSSETBRHORG pgSBO;
+ if(!dc) break;
pgSBO = (PGDIBSSETBRHORG) pHdr;
Dc_Attr->ptlBrushOrigin = pgSBO->ptlBrushOrigin;
break;