Author: jimtabor
Date: Fri Jan 18 21:10:42 2008
New Revision: 31876
URL:
http://svn.reactos.org/svn/reactos?rev=31876&view=rev
Log:
Fix logic in IntGdiDeleteDC with permanent set.
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 Fri Jan 18 21:10:42 2008
@@ -941,8 +941,8 @@
if (DCToDelete->DC_Flags & DC_FLAG_PERMANENT)
{
DPRINT1("No! You Naughty Application!\n");
+ DC_UnlockDc( DCToDelete );
// if(!UserReleaseDC(NULL, hDC, FALSE)) Ret = FALSE;
- DC_UnlockDc( DCToDelete );
return Ret;
}
}