diff options
| author | Yuki Okushi <yuki.okushi@huawei.com> | 2021-11-17 03:18:15 +0900 |
|---|---|---|
| committer | Yuki Okushi <yuki.okushi@huawei.com> | 2022-02-10 23:42:23 +0900 |
| commit | 1115f15e1cba09c60a9a1fe006941c562e91d348 (patch) | |
| tree | 21c438b932b99b57b6e58b99c2cd56e53bac8805 | |
| parent | 56cd04af5c389b6ab676ba16f59d9f70bc465090 (diff) | |
| download | rust-1115f15e1cba09c60a9a1fe006941c562e91d348.tar.gz rust-1115f15e1cba09c60a9a1fe006941c562e91d348.zip | |
windows: Map `ERROR_INVALID_NAME` as `InvalidInput`
| -rw-r--r-- | library/std/src/sys/windows/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/windows/mod.rs b/library/std/src/sys/windows/mod.rs index c70f254cf39..4ec9437700e 100644 --- a/library/std/src/sys/windows/mod.rs +++ b/library/std/src/sys/windows/mod.rs @@ -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 |
