mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
os: windows: fix unhandled error
This commit is contained in:
parent
adc3fafbc0
commit
fca776f8f5
@ -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),
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user