mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 04:13:33 +00:00
fixed calls to NtDuplicateObject
svn path=/trunk/; revision=20040
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
@@ -232,7 +232,7 @@ BOOL STDCALL DuplicateHandle(HANDLE hSourceProcessHandle,
|
||||
hTargetProcessHandle,
|
||||
lpTargetHandle,
|
||||
dwDesiredAccess,
|
||||
(BOOLEAN)bInheritHandle,
|
||||
bInheritHandle ? OBJ_INHERIT : 0,
|
||||
dwOptions);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
|
||||
@@ -44,7 +44,7 @@ RtlpGetRegistryHandle(ULONG RelativeTo,
|
||||
NtCurrentProcess(),
|
||||
KeyHandle,
|
||||
0,
|
||||
FALSE,
|
||||
0,
|
||||
DUPLICATE_SAME_ACCESS);
|
||||
#ifndef NDEBUG
|
||||
if(!NT_SUCCESS(Status))
|
||||
|
||||
@@ -121,7 +121,7 @@ CsrInsertObject(HANDLE ObjectHandle,
|
||||
CsrProcessHandle,
|
||||
Handle,
|
||||
DesiredAccess,
|
||||
TRUE,
|
||||
OBJ_INHERIT,
|
||||
0);
|
||||
|
||||
/* Close our handle to CSRSS */
|
||||
|
||||
Reference in New Issue
Block a user