Skip to content

Commit

Permalink
Fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Apr 13, 2024
1 parent 2255a3f commit 7d0e632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sys.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2147,7 +2147,7 @@ pub fn directoryExistsAt(dir_: anytype, subpath: anytype) JSC.Maybe(bool) {
const rc = kernel32.NtQueryAttributesFile(&attr, &basic_info);
if (JSC.Maybe(bool).errnoSysP(rc, .access, subpath)) |err| {
syslog("NtQueryAttributesFile({}, {}, O_DIRECTORY | O_RDONLY, 0) = {}", .{ dir_fd, bun.fmt.fmtOSPath(path, .{}), err });
return .{ .err = err };
return err;
}

const is_dir = basic_info.FileAttributes != kernel32.INVALID_FILE_ATTRIBUTES and
Expand Down

0 comments on commit 7d0e632

Please sign in to comment.