simplify query info process
@@ -633,13 +633,6 @@ NTSTATUS KphQueryInformationProcess(
}
}
- if (ProcessHandle == NtCurrentProcess())
- {
- processObject = PsGetCurrentProcess();
- ObReferenceObject(processObject);
- }
- else
- {
status = ObReferenceObjectByHandle(ProcessHandle,
0,
*PsProcessType,
@@ -656,7 +649,6 @@ NTSTATUS KphQueryInformationProcess(
process = NULL;
goto Exit;
}
- }
process = KphGetProcessContext(PsGetProcessId(processObject));
if (!process)
