zig
zig copied to clipboard
Wine's implementation of NtQueryObject unexpectedly returns paths starting with `\??\`
On Windows proper, NtQueryObject with OBJECT_NAME_INFORMATION will seemingly always return a path like \Device\HarddiskVolume4\foo\bar for file/directory handles (details here and here). Wine, however, will return paths like \??\C:\foo\bar.
Wine bug report: https://bugs.winehq.org/show_bug.cgi?id=39569
Relevant Zig issue that details the effects: https://github.com/ziglang/zig/issues/17535
In https://github.com/ziglang/zig/pull/17541 this is worked around by handling \??\ prefixed paths when \Device\ is not found, but this is a Wine specific workaround that would be better to get fixed in Wine.