[NTOS:MM] Unrefernece some dereferences

This commit is contained in:
Stanislav Motylkov 2021-12-30 01:54:09 +03:00
parent 84a4efa491
commit f18fb7da09
No known key found for this signature in database
GPG key ID: AFE513258CBA9E92

View file

@ -1842,7 +1842,7 @@ MiQueryMemoryBasicInformation(IN HANDLE ProcessHandle,
/* Check if we were attached */ /* Check if we were attached */
if (ProcessHandle != NtCurrentProcess()) if (ProcessHandle != NtCurrentProcess())
{ {
/* Detach and derefernece the process */ /* Detach and dereference the process */
KeUnstackDetachProcess(&ApcState); KeUnstackDetachProcess(&ApcState);
ObDereferenceObject(TargetProcess); ObDereferenceObject(TargetProcess);
} }
@ -1955,7 +1955,7 @@ MiQueryMemoryBasicInformation(IN HANDLE ProcessHandle,
/* Check if we were attached */ /* Check if we were attached */
if (ProcessHandle != NtCurrentProcess()) if (ProcessHandle != NtCurrentProcess())
{ {
/* Detach and derefernece the process */ /* Detach and dereference the process */
KeUnstackDetachProcess(&ApcState); KeUnstackDetachProcess(&ApcState);
ObDereferenceObject(TargetProcess); ObDereferenceObject(TargetProcess);
} }
@ -5617,7 +5617,7 @@ FinalPath:
goto FinalPath; goto FinalPath;
// //
// In the failure path, we detach and derefernece the target process, and // In the failure path, we detach and dereference the target process, and
// return whatever failure code was sent. // return whatever failure code was sent.
// //
FailPath: FailPath: