ntdll: Set the file_part for \\?\ long file names too
This patch fixes a crash when trying to run the True Image installer.
The installer calls FindFirstFileExW with a \\?\ long file name, which
in turn calls RtlDosPathNameToNtPathName_U with the same file. The
returned mask is never set, so trying to read from it causes a crash.
* Set the file_part for \\?\ long file names too.
Re: ntdll: Set the file_part for \\?\ long file names too
> if (!ntpath->Buffer) return FALSE;
> memcpy( ntpath->Buffer, dos_path, ntpath->MaximumLength );
> ntpath->Buffer = '?'; /* change \\?\ to \??\ */
> + RtlGetFullPathName_U(dos_path, sizeof(local), local, file_part);
> return TRUE;
this is wrong as file_part must point into ntpath->Buffer, not into
local, as your code does...