mirror of
https://github.com/reactos/reactos.git
synced 2024-07-06 20:55:16 +00:00
[NTOS]: Release the *right* lock. "Fix the fix" as the yuppies say.
svn path=/trunk/; revision=55988
This commit is contained in:
parent
26b48236fb
commit
4411be35e7
|
@ -4068,7 +4068,7 @@ FinalPath:
|
||||||
// return whatever failure code was sent.
|
// return whatever failure code was sent.
|
||||||
//
|
//
|
||||||
FailPath:
|
FailPath:
|
||||||
MiUnlockWorkingSet(CurrentThread, AddressSpace);
|
MmUnlockAddressSpace(AddressSpace);
|
||||||
if (Attached) KeUnstackDetachProcess(&ApcState);
|
if (Attached) KeUnstackDetachProcess(&ApcState);
|
||||||
if (ProcessHandle != NtCurrentProcess()) ObDereferenceObject(Process);
|
if (ProcessHandle != NtCurrentProcess()) ObDereferenceObject(Process);
|
||||||
return Status;
|
return Status;
|
||||||
|
|
Loading…
Reference in a new issue