diff --git a/lib/std/os/windows.zig b/lib/std/os/windows.zig index 18c6244baf..ba9979cbb4 100644 --- a/lib/std/os/windows.zig +++ b/lib/std/os/windows.zig @@ -1567,6 +1567,7 @@ pub const CreateProcessError = error{ FileNotFound, AccessDenied, InvalidName, + NameTooLong, Unexpected, }; @@ -1600,6 +1601,7 @@ pub fn CreateProcessW( .ACCESS_DENIED => return error.AccessDenied, .INVALID_PARAMETER => unreachable, .INVALID_NAME => return error.InvalidName, + .FILENAME_EXCED_RANGE => return error.NameTooLong, else => |err| return unexpectedError(err), } }