mirror of
https://github.com/reactos/reactos.git
synced 2025-06-10 20:34:59 +00:00
[NTOS:MM] Unrefernece some dereferences
This commit is contained in:
parent
84a4efa491
commit
f18fb7da09
1 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue