From 474bc78d7def2e570bfa190c36005e178df8815b Mon Sep 17 00:00:00 2001 From: James Tabor Date: Sat, 27 Mar 2010 04:45:31 +0000 Subject: [PATCH] [Win32k] - Kill debug warnings of dc ownership. svn path=/trunk/; revision=46485 --- reactos/subsystems/win32/win32k/ntuser/windc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reactos/subsystems/win32/win32k/ntuser/windc.c b/reactos/subsystems/win32/win32k/ntuser/windc.c index 0b5386597f9..bde42e1396c 100644 --- a/reactos/subsystems/win32/win32k/ntuser/windc.c +++ b/reactos/subsystems/win32/win32k/ntuser/windc.c @@ -643,6 +643,11 @@ DceFreeDCE(PDCE pdce, BOOLEAN Force) Hit = TRUE; } } + else + { + if (!GreGetObjectOwner(pdce->hDC, GDIObjType_DC_TYPE)) + DC_SetOwnership( pdce->hDC, PsGetCurrentProcess()); + } if (!Hit) IntGdiDeleteDC(pdce->hDC, TRUE);