mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
windows: Map ERROR_INVALID_NAME
as InvalidInput
This commit is contained in:
parent
56cd04af5c
commit
1115f15e1c
@ -71,7 +71,7 @@ pub fn decode_error_kind(errno: i32) -> ErrorKind {
|
||||
c::ERROR_FILE_NOT_FOUND => return NotFound,
|
||||
c::ERROR_PATH_NOT_FOUND => return NotFound,
|
||||
c::ERROR_NO_DATA => return BrokenPipe,
|
||||
c::ERROR_INVALID_PARAMETER => return InvalidInput,
|
||||
c::ERROR_INVALID_PARAMETER | c::ERROR_INVALID_NAME => return InvalidInput,
|
||||
c::ERROR_NOT_ENOUGH_MEMORY | c::ERROR_OUTOFMEMORY => return OutOfMemory,
|
||||
c::ERROR_SEM_TIMEOUT
|
||||
| c::WAIT_TIMEOUT
|
||||
|
Loading…
Reference in New Issue
Block a user