[ros-diffs] [jgardou] 46530: [WIN32K] Close another pair of DC_LockDC/DC_UnlockDC Now gdi32:dc winetests doesn't crash anymore.

jgardou at svn.reactos.org jgardou at svn.reactos.org
Mon Mar 29 00:27:57 CEST 2010


Author: jgardou
Date: Mon Mar 29 00:27:57 2010
New Revision: 46530

URL: http://svn.reactos.org/svn/reactos?rev=46530&view=rev
Log:
[WIN32K]
Close another pair of DC_LockDC/DC_UnlockDC

Now gdi32:dc winetests doesn't crash anymore.

Modified:
    branches/reactos-yarotows/subsystems/win32/win32k/objects/dcstate.c

Modified: branches/reactos-yarotows/subsystems/win32/win32k/objects/dcstate.c
URL: http://svn.reactos.org/svn/reactos/branches/reactos-yarotows/subsystems/win32/win32k/objects/dcstate.c?rev=46530&r1=46529&r2=46530&view=diff
==============================================================================
--- branches/reactos-yarotows/subsystems/win32/win32k/objects/dcstate.c [iso-8859-1] (original)
+++ branches/reactos-yarotows/subsystems/win32/win32k/objects/dcstate.c [iso-8859-1] Mon Mar 29 00:27:57 2010
@@ -173,6 +173,8 @@
         /* Prevent save dc from being restored */
         pdcSave->dclevel.lSaveDepth = 1;
 
+        /* Unlock it */
+        DC_UnlockDc(pdcSave);
         /* Delete the saved dc */
         GreDeleteObject(hdcSave);
     }




More information about the Ros-diffs mailing list