Skip to content

Commit

Permalink
print win32 error code as integer to avoid ridiculous compile-times
Browse files Browse the repository at this point in the history
  • Loading branch information
marler8997 committed Dec 15, 2024
1 parent 3d13df6 commit 0043ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion win32exelink.zig
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub fn main() !u8 {
global.child = std.process.Child.init(args, global.arena);

if (0 == win32.SetConsoleCtrlHandler(consoleCtrlHandler, 1)) {
log.err("SetConsoleCtrlHandler failed, error={}", .{win32.GetLastError()});
log.err("SetConsoleCtrlHandler failed, error={}", .{@intFromEnum(win32.GetLastError())});
return 0xff; // fail
}

Expand Down

0 comments on commit 0043ea5

Please sign in to comment.