Commit fe9489ad63

Marc Tiehuis <marctiehuis@gmail.com>
2018-04-13 12:50:57
Fix windows access check
1 parent 03bec63
Changed files (1)
std
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;
             }