From c4a306e3f7649cc7b2f04fdae3a43ab9430b79c1 Mon Sep 17 00:00:00 2001 From: Jeffrey Morlan Date: Mon, 14 Jul 2008 17:42:22 +0000 Subject: [PATCH] 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 --- reactos/ntoskrnl/ob/obhandle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/ob/obhandle.c b/reactos/ntoskrnl/ob/obhandle.c index 5068dd98579..a82595f477c 100644 --- a/reactos/ntoskrnl/ob/obhandle.c +++ b/reactos/ntoskrnl/ob/obhandle.c @@ -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))