diff --git a/std/os/file.zig b/std/os/file.zig index 7480ed332..61fc2b145 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; }