fixed calls to NtDuplicateObject
Modified: trunk/reactos/drivers/net/ndis/ndis/config.c
Modified: trunk/reactos/lib/kernel32/misc/handle.c
Modified: trunk/reactos/lib/rtl/registry.c
Modified: trunk/reactos/subsys/win32k/ntuser/csr.c

Modified: trunk/reactos/drivers/net/ndis/ndis/config.c
--- trunk/reactos/drivers/net/ndis/ndis/config.c	2005-12-10 17:00:54 UTC (rev 20039)
+++ trunk/reactos/drivers/net/ndis/ndis/config.c	2005-12-10 17:09:35 UTC (rev 20040)
@@ -180,7 +180,7 @@
     NDIS_DbgPrint(MAX_TRACE, ("Called\n"));
 
     *Status = ZwDuplicateObject(NtCurrentProcess(), RootKeyHandle,
-                                NtCurrentProcess(), &KeyHandle, 0, FALSE,
+                                NtCurrentProcess(), &KeyHandle, 0, 0,
                                 DUPLICATE_SAME_ACCESS);
     if(!NT_SUCCESS(*Status))
     {

Modified: trunk/reactos/lib/kernel32/misc/handle.c
--- trunk/reactos/lib/kernel32/misc/handle.c	2005-12-10 17:00:54 UTC (rev 20039)
+++ trunk/reactos/lib/kernel32/misc/handle.c	2005-12-10 17:09:35 UTC (rev 20040)
@@ -232,7 +232,7 @@
 			      hTargetProcessHandle,
 			      lpTargetHandle,
 			      dwDesiredAccess,
-			      (BOOLEAN)bInheritHandle,
+			      bInheritHandle ? OBJ_INHERIT : 0,
 			      dwOptions);
    if (!NT_SUCCESS(Status))
      {

Modified: trunk/reactos/lib/rtl/registry.c
--- trunk/reactos/lib/rtl/registry.c	2005-12-10 17:00:54 UTC (rev 20039)
+++ trunk/reactos/lib/rtl/registry.c	2005-12-10 17:09:35 UTC (rev 20040)
@@ -44,7 +44,7 @@
 				 NtCurrentProcess(),
 				 KeyHandle,
 				 0,
-				 FALSE,
+				 0,
 				 DUPLICATE_SAME_ACCESS);
 #ifndef NDEBUG
       if(!NT_SUCCESS(Status))

Modified: trunk/reactos/subsys/win32k/ntuser/csr.c
--- trunk/reactos/subsys/win32k/ntuser/csr.c	2005-12-10 17:00:54 UTC (rev 20039)
+++ trunk/reactos/subsys/win32k/ntuser/csr.c	2005-12-10 17:09:35 UTC (rev 20040)
@@ -121,7 +121,7 @@
                                  CsrProcessHandle,
                                  Handle,
                                  DesiredAccess,
-                                 TRUE,
+                                 OBJ_INHERIT,
                                  0);
 
       /* Close our handle to CSRSS */