Skip to content

Commit 1115f15

Browse files
committed
windows: Map ERROR_INVALID_NAME as InvalidInput
1 parent 56cd04a commit 1115f15

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/sys/windows

1 file changed

+1
-1
lines changed

library/std/src/sys/windows/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pub fn decode_error_kind(errno: i32) -> ErrorKind {
7171
c::ERROR_FILE_NOT_FOUND => return NotFound,
7272
c::ERROR_PATH_NOT_FOUND => return NotFound,
7373
c::ERROR_NO_DATA => return BrokenPipe,
74-
c::ERROR_INVALID_PARAMETER => return InvalidInput,
74+
c::ERROR_INVALID_PARAMETER | c::ERROR_INVALID_NAME => return InvalidInput,
7575
c::ERROR_NOT_ENOUGH_MEMORY | c::ERROR_OUTOFMEMORY => return OutOfMemory,
7676
c::ERROR_SEM_TIMEOUT
7777
| c::WAIT_TIMEOUT

0 commit comments

Comments
 (0)