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:
Jeffrey Morlan 2008-07-14 17:42:22 +00:00
parent a84f8fec2c
commit c4a306e3f7

View file

@ -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))