[NTOS]: Release the *right* lock. "Fix the fix" as the yuppies say.

svn path=/trunk/; revision=55988
This commit is contained in:
Sir Richard 2012-03-04 03:18:47 +00:00
parent 26b48236fb
commit 4411be35e7

View file

@ -4068,7 +4068,7 @@ FinalPath:
// return whatever failure code was sent.
//
FailPath:
MiUnlockWorkingSet(CurrentThread, AddressSpace);
MmUnlockAddressSpace(AddressSpace);
if (Attached) KeUnstackDetachProcess(&ApcState);
if (ProcessHandle != NtCurrentProcess()) ObDereferenceObject(Process);
return Status;