On Wed Jul 9 20:13:08 2025 +0000, Alexandre Julliard wrote:
You can't assume that you get a drive letter path, there are other possible formats. Also the tests should use NtCreateFile to confirm that this should be done on the kernel side.
Ah, true, didn't think that NtCreateFile behavior might differ. It doesn't, and I'll update the tests.
As for other possible formats, does it suffice to skip other prefixes using `get_dos_prefix_len`, like `nt_to_unix_file_name_no_root` does? After such a prefix, I should always have a drive letter path, right? Otherwise previous parts of `get_nt_and_unix_names` will have set a non-zero status, I think.