mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
fix(windows): handle commitment limit error in CreateProcessW
This commit is contained in:
parent
c1649d586a
commit
971d19a3b2
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue