mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
When duplicating a handle to a child process, only pass the actual attributes to ObpIncrementHandleCount. Spurious attributes from the object pointer were making this call fail randomly.
svn path=/trunk/; revision=34507
This commit is contained in:
parent
a84f8fec2c
commit
c4a306e3f7
1 changed files with 1 additions and 1 deletions
|
@ -1920,7 +1920,7 @@ ObpDuplicateHandleCallback(IN PEPROCESS Process,
|
|||
Status = ObpIncrementHandleCount(&ObjectHeader->Body,
|
||||
&AccessState,
|
||||
KernelMode,
|
||||
HandleTableEntry->ObAttributes,
|
||||
HandleTableEntry->ObAttributes & OBJ_HANDLE_ATTRIBUTES,
|
||||
Process,
|
||||
ObInheritHandle);
|
||||
if (!NT_SUCCESS(Status))
|
||||
|
|
Loading…
Reference in a new issue