fixed calls to NtDuplicateObject
[reactos.git] / reactos / lib / kernel32 / misc / handle.c
index f3dcba8..3ee219c 100644 (file)
@@ -232,7 +232,7 @@ BOOL STDCALL DuplicateHandle(HANDLE hSourceProcessHandle,
                              hTargetProcessHandle,
                              lpTargetHandle,
                              dwDesiredAccess,
-                             (BOOLEAN)bInheritHandle,
+                             bInheritHandle ? OBJ_INHERIT : 0,
                              dwOptions);
    if (!NT_SUCCESS(Status))
      {