Merge pull request #549 from typpos/master

Fix: elevated-rights-handle visible in user space.
This commit is contained in:
DavidXanatos 2021-02-14 18:00:56 +01:00 committed by GitHub
commit b4764814a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)) {