- Kill debug warnings of dc ownership.

svn path=/trunk/; revision=46485
This commit is contained in:
James Tabor 2010-03-27 04:45:31 +00:00
parent 3ae7b85b5a
commit 474bc78d7d

View file

@ -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);