mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +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"));
|
NDIS_DbgPrint(MAX_TRACE, ("Called\n"));
|
||||||
|
|
||||||
*Status = ZwDuplicateObject(NtCurrentProcess(), RootKeyHandle,
|
*Status = ZwDuplicateObject(NtCurrentProcess(), RootKeyHandle,
|
||||||
NtCurrentProcess(), &KeyHandle, 0, FALSE,
|
NtCurrentProcess(), &KeyHandle, 0, 0,
|
||||||
DUPLICATE_SAME_ACCESS);
|
DUPLICATE_SAME_ACCESS);
|
||||||
if(!NT_SUCCESS(*Status))
|
if(!NT_SUCCESS(*Status))
|
||||||
{
|
{
|
||||||
|
|
|
@ -232,7 +232,7 @@ BOOL STDCALL DuplicateHandle(HANDLE hSourceProcessHandle,
|
||||||
hTargetProcessHandle,
|
hTargetProcessHandle,
|
||||||
lpTargetHandle,
|
lpTargetHandle,
|
||||||
dwDesiredAccess,
|
dwDesiredAccess,
|
||||||
(BOOLEAN)bInheritHandle,
|
bInheritHandle ? OBJ_INHERIT : 0,
|
||||||
dwOptions);
|
dwOptions);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
|
|
|
@ -44,7 +44,7 @@ RtlpGetRegistryHandle(ULONG RelativeTo,
|
||||||
NtCurrentProcess(),
|
NtCurrentProcess(),
|
||||||
KeyHandle,
|
KeyHandle,
|
||||||
0,
|
0,
|
||||||
FALSE,
|
0,
|
||||||
DUPLICATE_SAME_ACCESS);
|
DUPLICATE_SAME_ACCESS);
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
if(!NT_SUCCESS(Status))
|
if(!NT_SUCCESS(Status))
|
||||||
|
|
|
@ -121,7 +121,7 @@ CsrInsertObject(HANDLE ObjectHandle,
|
||||||
CsrProcessHandle,
|
CsrProcessHandle,
|
||||||
Handle,
|
Handle,
|
||||||
DesiredAccess,
|
DesiredAccess,
|
||||||
TRUE,
|
OBJ_INHERIT,
|
||||||
0);
|
0);
|
||||||
|
|
||||||
/* Close our handle to CSRSS */
|
/* Close our handle to CSRSS */
|
||||||
|
|
Loading…
Reference in a new issue