Set the file_part for \\?\ long file names too.

oldstable
James Hawkins 2005-10-18 14:12:25 +00:00 committed by Alexandre Julliard
parent 8cd388f398
commit b721ee0d41
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}