Set the file_part for \\?\ long file names too.
This commit is contained in:
parent
8cd388f398
commit
b721ee0d41
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue