diff options
| author | Tyler Ruckinger <t.ruckinger@gmail.com> | 2020-06-26 00:43:34 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-26 00:43:34 -0400 |
| commit | b71a3e1e3a20e7db3b8167d19002c372ffe69c54 (patch) | |
| tree | b0757a1e45a450bb9f49b26ea87a2598cad06fe9 /src/libstd/sys/windows | |
| parent | 00ef46169e2b2631d41d6aa1b7c55b8abf006e50 (diff) | |
| download | rust-b71a3e1e3a20e7db3b8167d19002c372ffe69c54.tar.gz rust-b71a3e1e3a20e7db3b8167d19002c372ffe69c54.zip | |
Map ERROR_INVALID_PARAMETER to InvalidInput
Diffstat (limited to 'src/libstd/sys/windows')
| -rw-r--r-- | src/libstd/sys/windows/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/sys/windows/mod.rs b/src/libstd/sys/windows/mod.rs index 640c9f3636d..193ab5b47ef 100644 --- a/src/libstd/sys/windows/mod.rs +++ b/src/libstd/sys/windows/mod.rs @@ -61,6 +61,7 @@ pub fn decode_error_kind(errno: i32) -> ErrorKind { c::ERROR_FILE_NOT_FOUND => return ErrorKind::NotFound, c::ERROR_PATH_NOT_FOUND => return ErrorKind::NotFound, c::ERROR_NO_DATA => return ErrorKind::BrokenPipe, + c::ERROR_INVALID_PARAMETER => return ErrorKind::InvalidInput, c::ERROR_SEM_TIMEOUT | c::WAIT_TIMEOUT | c::ERROR_DRIVER_CANCEL_TIMEOUT |
