From fe9489ad63ea8231bb0366d7608e52d0d30bfefb Mon Sep 17 00:00:00 2001 From: Marc Tiehuis Date: Fri, 13 Apr 2018 22:50:57 +1200 Subject: [PATCH] Fix windows access check --- std/os/file.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/os/file.zig b/std/os/file.zig index 7480ed3328..61fc2b1455 100644 --- 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; }