Fix: elevated-rights-handle visible in user space.

This commit is contained in:
typpos 2021-02-12 19:59:38 +11:00
parent 7d5470a02d
commit c405103c30
1 changed files with 1 additions and 2 deletions

View File

@ -1164,11 +1164,10 @@ _FX NTSTATUS Ipc_Api_DuplicateObject(PROCESS *proc, ULONG64 *parms)
status = NtDuplicateObject(
SourceProcessHandle, SourceHandle,
TargetProcessHandle, TargetHandle,
TargetProcessHandle, &TargetHandleValue,
DesiredAccess, HandleAttributes,
Options & ~DUPLICATE_CLOSE_SOURCE);
TargetHandleValue = *TargetHandle;
*TargetHandle = NULL;
if (NT_SUCCESS(status)) {