Author: jimtabor
Date: Sat Mar 27 05:45:31 2010
New Revision: 46485
URL:
http://svn.reactos.org/svn/reactos?rev=46485&view=rev
Log:
[Win32k]
- Kill debug warnings of dc ownership.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/windc.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/windc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/windc.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/windc.c [iso-8859-1] Sat Mar 27 05:45:31
2010
@@ -642,6 +642,11 @@
DPRINT1("Attempted to change ownership of an DCEhDC 0x%x currently being
destroyed!!!\n",pdce->hDC);
Hit = TRUE;
}
+ }
+ else
+ {
+ if (!GreGetObjectOwner(pdce->hDC, GDIObjType_DC_TYPE))
+ DC_SetOwnership( pdce->hDC, PsGetCurrentProcess());
}
if (!Hit) IntGdiDeleteDC(pdce->hDC, TRUE);