From fca776f8f5f6c31e66ddf8e858483b718618fbdf Mon Sep 17 00:00:00 2001 From: Ali Chraghi Date: Sat, 19 Nov 2022 19:40:42 +0330 Subject: [PATCH] os: windows: fix unhandled error --- lib/std/os/windows.zig | 2 ++ 1 file changed, 2 insertions(+) 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), } }