Map ERROR_INVALID_NAME
to FilenameInvalid
This commit is contained in:
parent
755e475c8b
commit
cc9407924d
@ -71,7 +71,8 @@ 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 | c::ERROR_INVALID_NAME => return InvalidInput,
|
||||
c::ERROR_INVALID_NAME => return FilenameInvalid,
|
||||
c::ERROR_INVALID_PARAMETER => 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