mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Dereference the object if the type doesn't match in ObmReferenceObjectByHandle.
svn path=/trunk/; revision=14447
This commit is contained in:
parent
7e355fdee2
commit
fccdd32ffd
1 changed files with 1 additions and 0 deletions
|
@ -461,6 +461,7 @@ ObmReferenceObjectByHandle(PUSER_HANDLE_TABLE HandleTable,
|
|||
if ((ObjectType != otUnknown) && (ObjectHeader->Type != ObjectType))
|
||||
{
|
||||
DPRINT1("Object type mismatch 0x%x 0x%x\n", ObjectType, ObjectHeader->Type);
|
||||
ObmDereferenceObject(ObjectBody);
|
||||
return STATUS_UNSUCCESSFUL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue