mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
windows.GetFinalPathNameByHandle: add links to bugs tracking the Wine workaround
This commit is contained in:
parent
689032d571
commit
d48faf1a32
1 changed files with 2 additions and 0 deletions
|
|
@ -1310,6 +1310,8 @@ pub fn GetFinalPathNameByHandle(
|
|||
// Wine seems to return NT namespaced paths starting with \??\ from QueryObjectName
|
||||
// (e.g. `\??\Z:\some\path\to\a\file.txt`), in which case we can just strip the
|
||||
// prefix to turn it into an absolute path.
|
||||
// https://github.com/ziglang/zig/issues/26029
|
||||
// https://bugs.winehq.org/show_bug.cgi?id=39569
|
||||
return ntToWin32Namespace(final_path, out_buffer) catch |err| switch (err) {
|
||||
error.NotNtPath => return error.Unexpected,
|
||||
error.NameTooLong => |e| return e,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue