mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
some Nt vs. Zw fixes; these functions shouldn't be used in ntoskrnl but since they're shared there's a chance they could be used
svn path=/trunk/; revision=17992
This commit is contained in:
parent
da28a303cc
commit
c7781723f8
2 changed files with 7 additions and 7 deletions
|
@ -266,7 +266,7 @@ RtlSetCurrentDirectory_U(PUNICODE_STRING dir)
|
|||
NULL,
|
||||
NULL);
|
||||
|
||||
Status = NtOpenFile (&handle,
|
||||
Status = ZwOpenFile (&handle,
|
||||
SYNCHRONIZE | FILE_TRAVERSE,
|
||||
&Attr,
|
||||
&iosb,
|
||||
|
@ -281,12 +281,12 @@ RtlSetCurrentDirectory_U(PUNICODE_STRING dir)
|
|||
}
|
||||
|
||||
/* don't keep the directory handle open on removable media */
|
||||
if (NT_SUCCESS(NtQueryVolumeInformationFile( handle, &iosb, &device_info,
|
||||
if (NT_SUCCESS(ZwQueryVolumeInformationFile( handle, &iosb, &device_info,
|
||||
sizeof(device_info), FileFsDeviceInformation )) &&
|
||||
(device_info.Characteristics & FILE_REMOVABLE_MEDIA))
|
||||
{
|
||||
DPRINT1("don't keep the directory handle open on removable media\n");
|
||||
NtClose( handle );
|
||||
ZwClose( handle );
|
||||
handle = 0;
|
||||
}
|
||||
|
||||
|
@ -302,7 +302,7 @@ RtlSetCurrentDirectory_U(PUNICODE_STRING dir)
|
|||
0,
|
||||
MAX_PATH*sizeof(WCHAR)+sizeof(ULONG));
|
||||
|
||||
Status = NtQueryInformationFile(handle,
|
||||
Status = ZwQueryInformationFile(handle,
|
||||
&iosb,
|
||||
filenameinfo,
|
||||
MAX_PATH*sizeof(WCHAR)+sizeof(ULONG),
|
||||
|
@ -357,7 +357,7 @@ RtlSetCurrentDirectory_U(PUNICODE_STRING dir)
|
|||
|
||||
|
||||
if (cd->Handle)
|
||||
NtClose(cd->Handle);
|
||||
ZwClose(cd->Handle);
|
||||
cd->Handle = handle;
|
||||
|
||||
/* append trailing \ if missing */
|
||||
|
@ -961,7 +961,7 @@ RtlDoesFileExists_U(IN PWSTR FileName)
|
|||
CurDir.Handle,
|
||||
NULL);
|
||||
|
||||
Status = NtQueryAttributesFile (&Attr, &Info);
|
||||
Status = ZwQueryAttributesFile (&Attr, &Info);
|
||||
|
||||
RtlFreeUnicodeString(&NtFileName);
|
||||
|
||||
|
|
|
@ -325,7 +325,7 @@ RtlEncodePointer(IN PVOID Pointer)
|
|||
ULONG Cookie;
|
||||
NTSTATUS Status;
|
||||
|
||||
Status = NtQueryInformationProcess(NtCurrentProcess(),
|
||||
Status = ZwQueryInformationProcess(NtCurrentProcess(),
|
||||
ProcessCookie,
|
||||
&Cookie,
|
||||
sizeof(Cookie),
|
||||
|
|
Loading…
Reference in a new issue