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