mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
fix(windows): handle commitment limit error in CreateProcessW
This commit is contained in:
parent
c1649d586a
commit
971d19a3b2
@ -1924,6 +1924,7 @@ pub const CreateProcessError = error{
|
||||
InvalidName,
|
||||
NameTooLong,
|
||||
InvalidExe,
|
||||
SystemResources,
|
||||
Unexpected,
|
||||
};
|
||||
|
||||
@ -2018,6 +2019,7 @@ pub fn CreateProcessW(
|
||||
// when calling CreateProcessW on a plain text file with a .exe extension
|
||||
.EXE_MACHINE_TYPE_MISMATCH,
|
||||
=> return error.InvalidExe,
|
||||
.COMMITMENT_LIMIT => return error.SystemResources,
|
||||
else => |err| return unexpectedError(err),
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user