mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
Added two missing calls to KeLeaveCriticalRegion.
svn path=/trunk/; revision=14013
This commit is contained in:
parent
85fdc76fb2
commit
aed77689d2
1 changed files with 2 additions and 1 deletions
|
@ -169,6 +169,7 @@ ObDuplicateObject(PEPROCESS SourceProcess,
|
|||
ExSourceHandle);
|
||||
if (SourceHandleEntry == NULL)
|
||||
{
|
||||
KeLeaveCriticalRegion();
|
||||
return STATUS_INVALID_HANDLE;
|
||||
}
|
||||
|
||||
|
@ -506,7 +507,7 @@ ObDeleteHandle(PEPROCESS Process,
|
|||
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
KeLeaveCriticalRegion();
|
||||
return STATUS_INVALID_HANDLE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue