[ros-diffs] [jmorlan] 34507: 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.
jmorlan at svn.reactos.org
jmorlan at svn.reactos.org
Mon Jul 14 19:42:23 CEST 2008
Author: jmorlan
Date: Mon Jul 14 12:42:22 2008
New Revision: 34507
URL: http://svn.reactos.org/svn/reactos?rev=34507&view=rev
Log:
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.
Modified:
trunk/reactos/ntoskrnl/ob/obhandle.c
Modified: trunk/reactos/ntoskrnl/ob/obhandle.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ob/obhandle.c?rev=34507&r1=34506&r2=34507&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/ob/obhandle.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ob/obhandle.c [iso-8859-1] Mon Jul 14 12:42:22 2008
@@ -1920,7 +1920,7 @@
Status = ObpIncrementHandleCount(&ObjectHeader->Body,
&AccessState,
KernelMode,
- HandleTableEntry->ObAttributes,
+ HandleTableEntry->ObAttributes & OBJ_HANDLE_ATTRIBUTES,
Process,
ObInheritHandle);
if (!NT_SUCCESS(Status))
More information about the Ros-diffs
mailing list