commit fe9489ad63ea8231bb0366d7608e52d0d30bfefb (tree) parent 03bec631bd493dc157d0c071363c967caf7f57ac Author: Marc Tiehuis <marctiehuis@gmail.com> Date: Fri, 13 Apr 2018 22:50:57 +1200 Fix windows access check Diffstat:
| M | std/os/file.zig | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/std/os/file.zig b/std/os/file.zig @@ -112,7 +112,7 @@ pub const File = struct { } return true; } else if (is_windows) { - if (os.windows.PathFileExists(path_with_null.ptr)) { + if (os.windows.PathFileExists(path_with_null.ptr) == os.windows.TRUE) { return true; }