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…
==============================================================================
--- 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))