commit fca776f8f5f6c31e66ddf8e858483b718618fbdf (tree)
parent adc3fafbc0c46485ae6c218bc791019741b7536c
Author: Ali Chraghi <alichraghi@pm.me>
Date: Sat, 19 Nov 2022 19:40:42 +0330
os: windows: fix unhandled error
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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),
}
}