| ... | @@ -1924,6 +1924,7 @@ pub const CreateProcessError = error{ | ... | @@ -1924,6 +1924,7 @@ pub const CreateProcessError = error{ |
| 1924 | InvalidName, | 1924 | InvalidName, |
| 1925 | NameTooLong, | 1925 | NameTooLong, |
| 1926 | InvalidExe, | 1926 | InvalidExe, |
| | 1927 | SystemResources, |
| 1927 | Unexpected, | 1928 | Unexpected, |
| 1928 | }; | 1929 | }; |
| 1929 | | 1930 | |
| ... | @@ -2018,6 +2019,7 @@ pub fn CreateProcessW( | ... | @@ -2018,6 +2019,7 @@ pub fn CreateProcessW( |
| 2018 | // when calling CreateProcessW on a plain text file with a .exe extension | 2019 | // when calling CreateProcessW on a plain text file with a .exe extension |
| 2019 | .EXE_MACHINE_TYPE_MISMATCH, | 2020 | .EXE_MACHINE_TYPE_MISMATCH, |
| 2020 | => return error.InvalidExe, | 2021 | => return error.InvalidExe, |
| | 2022 | .COMMITMENT_LIMIT => return error.SystemResources, |
| 2021 | else => |err| return unexpectedError(err), | 2023 | else => |err| return unexpectedError(err), |
| 2022 | } | 2024 | } |
| 2023 | } | 2025 | } |