From 7d0e63228aee14df1351ea5b2e78ad1f8a5d6e84 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Fri, 12 Apr 2024 20:49:36 -0700 Subject: [PATCH] Fix windows build --- src/sys.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sys.zig b/src/sys.zig index e88824dfcfa45e..f10314ff5c5d96 100644 --- a/src/sys.zig +++ b/src/sys.zig @@ -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