Author: jimtabor
Date: Sat Sep 8 18:30:39 2007
New Revision: 28949
URL:
http://svn.reactos.org/svn/reactos?rev=28949&view=rev
Log:
Reset DC if MemoryDC or SaveLevelDC.
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 Sat Sep 8 18:30:39 2007
@@ -1448,7 +1448,8 @@
IntGdiExtSelectClipRgn(dc, dcs->w.hClipRgn, RGN_COPY);
DC_UnlockDc ( dc );
#endif
-
+ if(!hDC) return; // Not a MemoryDC or SaveLevel DC, return.
+
NtGdiSelectObject( hDC, dcs->w.hBitmap );
NtGdiSelectObject( hDC, dcs->Dc_Attr.hbrush );
NtGdiSelectObject( hDC, dcs->Dc_Attr.hlfntNew );