mirror of
https://github.com/tnodir/fort
synced 2024-11-15 10:05:08 +00:00
Driver: PsTree: Add OBJ_KERNEL_HANDLE to ObOpenObjectByPointer()
This commit is contained in:
parent
9b758fba58
commit
47a454e42e
@ -167,7 +167,8 @@ static HANDLE OpenProcessById(DWORD processId)
|
|||||||
}
|
}
|
||||||
|
|
||||||
HANDLE processHandle;
|
HANDLE processHandle;
|
||||||
status = ObOpenObjectByPointer(peProcess, 0, NULL, 0, 0, KernelMode, &processHandle);
|
status = ObOpenObjectByPointer(
|
||||||
|
peProcess, OBJ_KERNEL_HANDLE, NULL, 0, 0, KernelMode, &processHandle);
|
||||||
|
|
||||||
ObDereferenceObject(peProcess);
|
ObDereferenceObject(peProcess);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user