commit 9b1b44b41c2b1efe272985af44eaae84b9c4af1c (tree)
parent e2fd289a33bb35cf4b86daa4d80adb7cc0c2c2b0
Author: Ryan Liptak <squeek502@hotmail.com>
Date: Mon, 9 Mar 2020 00:52:28 -0700
Windows: Fix std.fs.realpath/os.realpathW for directories
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/os.zig b/lib/std/os.zig
@@ -3077,7 +3077,7 @@ pub fn realpathW(pathname: [*:0]const u16, out_buffer: *[MAX_PATH_BYTES]u8) Real
windows.FILE_SHARE_READ,
null,
windows.OPEN_EXISTING,
- windows.FILE_ATTRIBUTE_NORMAL,
+ windows.FILE_FLAG_BACKUP_SEMANTICS,
null,
);
defer windows.CloseHandle(h_file);