[WIN32K]
authorJérôme Gardou <jerome.gardou@reactos.org>
Thu, 10 Jun 2010 00:40:09 +0000 (00:40 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Thu, 10 Jun 2010 00:40:09 +0000 (00:40 +0000)
  - check for the type of the DC to restore to decide whether we should restore the surface
Fixes yarotows specific FF3 bug

svn path=/branches/reactos-yarotows/; revision=47731

subsystems/win32/win32k/objects/dcstate.c

index b19e8a1..889a873 100644 (file)
@@ -149,7 +149,7 @@ DC_vRestoreDC(
             DC_vCopyState(pdcSave, pdc, FALSE);
 
             /* Only memory DC's change their surface */
-            if (pdcSave->dctype == DCTYPE_MEMORY)
+            if (pdc->dctype == DCTYPE_MEMORY)
                 DC_vSelectSurface(pdc, pdcSave->dclevel.pSurface);
 
             // Restore Path by removing it, if the Save flag is set.