From b721ee0d413a9e10e11b0c2eed777bb6db45587e Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Tue, 18 Oct 2005 14:12:25 +0000 Subject: [PATCH] Set the file_part for \\?\ long file names too. --- dlls/ntdll/path.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/ntdll/path.c b/dlls/ntdll/path.c index befe15c0a4f..2319480225c 100644 --- a/dlls/ntdll/path.c +++ b/dlls/ntdll/path.c @@ -421,6 +421,11 @@ BOOLEAN WINAPI RtlDosPathNameToNtPathName_U(PCWSTR dos_path, if (!ntpath->Buffer) return FALSE; memcpy( ntpath->Buffer, dos_path, ntpath->MaximumLength ); ntpath->Buffer[1] = '?'; /* change \\?\ to \??\ */ + if (file_part) + { + if ((ptr = strrchrW( ntpath->Buffer, '\\' )) && ptr[1]) *file_part = ptr + 1; + else *file_part = NULL; + } return TRUE; }