From 1541aa6f43c2280baf9ad9bafcf60b3f993ab210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Gardou?= Date: Sun, 28 Mar 2010 22:27:57 +0000 Subject: [PATCH] [WIN32K] 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subsystems/win32/win32k/objects/dcstate.c b/subsystems/win32/win32k/objects/dcstate.c index 560ef34d8eb..d36d8850bf4 100644 --- a/subsystems/win32/win32k/objects/dcstate.c +++ b/subsystems/win32/win32k/objects/dcstate.c @@ -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); }