Fix compiling in proper npfs mode.

svn path=/trunk/; revision=25989
This commit is contained in:
Aleksey Bragin 2007-03-04 21:14:58 +00:00
parent 1e35f772f8
commit 55a11ded1b

View file

@ -303,7 +303,7 @@ WaitNamedPipeW(LPCWSTR lpNamedPipeName,
Type = RtlDetermineDosPathNameType_U(lpNamedPipeName);
/* Check if this was a device path, ie : "\\.\pipe\name" */
if (Type == DEVICE_PATH)
if (Type == RtlPathTypeLocalDevice)
{
/* Make sure it's a valid prefix */
RtlInitUnicodeString(&PipePrefix, L"\\\\.\\pipe\\");
@ -317,7 +317,7 @@ WaitNamedPipeW(LPCWSTR lpNamedPipeName,
DPRINT("NewName: %wZ\n", &NewName);
RtlInitUnicodeString(&DevicePath, L"\\DosDevices\\pipe\\");
}
else if (Type == UNC_PATH)
else if (Type == RtlPathTypeRootLocalDevice)
{
/* The path is \\server\\pipe\name; find the pipename itself */
p = &NewName.Buffer[2];