fixed calls to NtDuplicateObject

svn path=/trunk/; revision=20040
This commit is contained in:
Thomas Bluemel 2005-12-10 17:09:35 +00:00
parent 1f7f1f3fe5
commit b1a1d2bbbb
4 changed files with 4 additions and 4 deletions

View file

@ -180,7 +180,7 @@ NdisOpenConfiguration(
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))
{

View file

@ -232,7 +232,7 @@ BOOL STDCALL DuplicateHandle(HANDLE hSourceProcessHandle,
hTargetProcessHandle,
lpTargetHandle,
dwDesiredAccess,
(BOOLEAN)bInheritHandle,
bInheritHandle ? OBJ_INHERIT : 0,
dwOptions);
if (!NT_SUCCESS(Status))
{

View file

@ -44,7 +44,7 @@ RtlpGetRegistryHandle(ULONG RelativeTo,
NtCurrentProcess(),
KeyHandle,
0,
FALSE,
0,
DUPLICATE_SAME_ACCESS);
#ifndef NDEBUG
if(!NT_SUCCESS(Status))

View file

@ -121,7 +121,7 @@ CsrInsertObject(HANDLE ObjectHandle,
CsrProcessHandle,
Handle,
DesiredAccess,
TRUE,
OBJ_INHERIT,
0);
/* Close our handle to CSRSS */