mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
fixed calls to NtDuplicateObject
svn path=/trunk/; revision=20040
This commit is contained in:
parent
1f7f1f3fe5
commit
b1a1d2bbbb
4 changed files with 4 additions and 4 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue