diff options
| author | Ryan Liptak <squeek502@hotmail.com> | 2020-03-09 00:52:28 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-03-09 12:59:17 -0400 |
| commit | 9b1b44b41c2b1efe272985af44eaae84b9c4af1c (patch) | |
| tree | d1d169c61728ec4d3858fe960f82f5490fbc31d7 /lib/std | |
| parent | e2fd289a33bb35cf4b86daa4d80adb7cc0c2c2b0 (diff) | |
| download | zig-9b1b44b41c2b1efe272985af44eaae84b9c4af1c.tar.gz zig-9b1b44b41c2b1efe272985af44eaae84b9c4af1c.zip | |
Windows: Fix std.fs.realpath/os.realpathW for directories
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/os.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/os.zig b/lib/std/os.zig index a6c8b32ba9..460f0bee02 100644 --- 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); |
