diff --git a/reactos/include/ndk/rtlfuncs.h b/reactos/include/ndk/rtlfuncs.h index b04633f05dd..71d23b066a0 100644 --- a/reactos/include/ndk/rtlfuncs.h +++ b/reactos/include/ndk/rtlfuncs.h @@ -2507,6 +2507,16 @@ RtlDosPathNameToNtPathName_U( OUT PRTL_RELATIVE_NAME_U DirectoryInfo ); +NTSYSAPI +BOOLEAN +NTAPI +RtlDosPathNameToRelativeNtPathName_U( + IN PCWSTR DosName, + OUT PUNICODE_STRING NtName, + OUT PCWSTR * PartName, + OUT PRTL_RELATIVE_NAME_U RelativeName +); + NTSYSAPI NTSTATUS NTAPI @@ -2539,14 +2549,14 @@ NTSYSAPI ULONG NTAPI RtlIsDosDeviceName_U( - IN PWSTR Name + IN PCWSTR Name ); NTSYSAPI ULONG NTAPI RtlIsDosDeviceName_Ustr( - IN PUNICODE_STRING Name + IN PCUNICODE_STRING Name ); diff --git a/reactos/lib/rtl/path.c b/reactos/lib/rtl/path.c index 0298b14c313..4b6e62965ed 100644 --- a/reactos/lib/rtl/path.c +++ b/reactos/lib/rtl/path.c @@ -43,7 +43,7 @@ const UNICODE_STRING RtlpDosNULDevice = RTL_CONSTANT_STRING(L"NUL"); ULONG NTAPI -RtlIsDosDeviceName_Ustr(IN PUNICODE_STRING PathString) +RtlIsDosDeviceName_Ustr(IN PCUNICODE_STRING PathString) { UNICODE_STRING PathCopy; PWCHAR Start, End; @@ -851,7 +851,7 @@ RtlDetermineDosPathNameType_U(IN PCWSTR Path) */ ULONG NTAPI -RtlIsDosDeviceName_U(IN PWSTR Path) +RtlIsDosDeviceName_U(IN PCWSTR Path) { UNICODE_STRING PathString; NTSTATUS Status; @@ -1418,7 +1418,7 @@ RtlDosPathNameToNtPathName_U_WithStatus(IN PCWSTR DosName, */ BOOLEAN NTAPI -RtlDosPathNameToRelativeNtPathName_U(IN PWSTR DosName, +RtlDosPathNameToRelativeNtPathName_U(IN PCWSTR DosName, OUT PUNICODE_STRING NtName, OUT PCWSTR *PartName, OUT PRTL_RELATIVE_NAME_U RelativeName) @@ -1437,7 +1437,7 @@ RtlDosPathNameToRelativeNtPathName_U(IN PWSTR DosName, */ NTSTATUS NTAPI -RtlDosPathNameToRelativeNtPathName_U_WithStatus(IN PWSTR DosName, +RtlDosPathNameToRelativeNtPathName_U_WithStatus(IN PCWSTR DosName, OUT PUNICODE_STRING NtName, OUT PCWSTR *PartName, OUT PRTL_RELATIVE_NAME_U RelativeName)