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
Modified: trunk/reactos/lib/rtl/path.c
Modified: trunk/reactos/lib/rtl/process.c
_____
Modified: trunk/reactos/lib/rtl/path.c
--- trunk/reactos/lib/rtl/path.c 2005-09-22 23:46:20 UTC (rev
17991)
+++ trunk/reactos/lib/rtl/path.c 2005-09-22 23:50:38 UTC (rev
17992)
@@ -266,7 +266,7 @@
NULL,
NULL);
- Status = NtOpenFile (&handle,
+ Status = ZwOpenFile (&handle,
SYNCHRONIZE | FILE_TRAVERSE,
&Attr,
&iosb,
@@ -281,12 +281,12 @@
}
/* 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 @@
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 @@
if (cd->Handle)
- NtClose(cd->Handle);
+ ZwClose(cd->Handle);
cd->Handle = handle;
/* append trailing \ if missing */
@@ -961,7 +961,7 @@
CurDir.Handle,
NULL);
- Status = NtQueryAttributesFile (&Attr, &Info);
+ Status = ZwQueryAttributesFile (&Attr, &Info);
RtlFreeUnicodeString(&NtFileName);
_____
Modified: trunk/reactos/lib/rtl/process.c
--- trunk/reactos/lib/rtl/process.c 2005-09-22 23:46:20 UTC (rev
17991)
+++ trunk/reactos/lib/rtl/process.c 2005-09-22 23:50:38 UTC (rev
17992)
@@ -325,7 +325,7 @@
ULONG Cookie;
NTSTATUS Status;
- Status = NtQueryInformationProcess(NtCurrentProcess(),
+ Status = ZwQueryInformationProcess(NtCurrentProcess(),
ProcessCookie,
&Cookie,
sizeof(Cookie),
Show replies by date