(GDIOBJ_SetOwnership): Don't try to decrease the GDI object counter for global handles since they're not associated with process.

svn path=/trunk/; revision=14166
This commit is contained in:
Filip Navara 2005-03-17 22:00:19 +00:00
parent 02755a61f0
commit a384c6e670

View file

@ -1216,6 +1216,8 @@ LockHandle:
/* dereference the process' object counter */ /* dereference the process' object counter */
/* FIXME */ /* FIXME */
if((ULONG_PTR)PrevProcId & ~0x1)
{
Status = PsLookupProcessByProcessId((HANDLE)((ULONG_PTR)PrevProcId & ~0x1), &OldProcess); Status = PsLookupProcessByProcessId((HANDLE)((ULONG_PTR)PrevProcId & ~0x1), &OldProcess);
if(NT_SUCCESS(Status)) if(NT_SUCCESS(Status))
{ {
@ -1226,6 +1228,7 @@ LockHandle:
} }
ObDereferenceObject(OldProcess); ObDereferenceObject(OldProcess);
} }
}
if(NewOwner != NULL) if(NewOwner != NULL)
{ {