mirror of
https://github.com/reactos/reactos.git
synced 2024-07-30 16:18:43 +00:00
Check first to see if the DC handle is dead, if so return true.
svn path=/trunk/; revision=30833
This commit is contained in:
parent
d2bb5d906c
commit
d313d22b18
|
@ -941,6 +941,8 @@ NtGdiDeleteObjectApp(HANDLE DCHandle)
|
|||
if (GDI_HANDLE_GET_TYPE(DCHandle) != GDI_OBJECT_TYPE_DC)
|
||||
return NtGdiDeleteObject((HGDIOBJ) DCHandle);
|
||||
|
||||
if(IsObjectDead((HGDIOBJ)DCHandle)) return TRUE;
|
||||
|
||||
if (!GDIOBJ_OwnedByCurrentProcess(GdiHandleTable, DCHandle))
|
||||
{
|
||||
SetLastWin32Error(ERROR_INVALID_HANDLE);
|
||||
|
|
Loading…
Reference in a new issue