[WIN32K]
authorJérôme Gardou <jerome.gardou@reactos.org>
Sun, 28 Mar 2010 22:27:57 +0000 (22:27 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Sun, 28 Mar 2010 22:27:57 +0000 (22:27 +0000)
Close another pair of DC_LockDC/DC_UnlockDC

Now gdi32:dc winetests doesn't crash anymore.

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

subsystems/win32/win32k/objects/dcstate.c

index 560ef34..d36d885 100644 (file)
@@ -173,6 +173,8 @@ DC_vRestoreDC(
         /* Prevent save dc from being restored */
         pdcSave->dclevel.lSaveDepth = 1;
 
+        /* Unlock it */
+        DC_UnlockDc(pdcSave);
         /* Delete the saved dc */
         GreDeleteObject(hdcSave);
     }