We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ERROR_INVALID_NAME
FilenameInvalid
1 parent 755e475 commit cc94079Copy full SHA for cc94079
library/std/src/sys/windows/mod.rs
@@ -71,7 +71,8 @@ pub fn decode_error_kind(errno: i32) -> ErrorKind {
71
c::ERROR_FILE_NOT_FOUND => return NotFound,
72
c::ERROR_PATH_NOT_FOUND => return NotFound,
73
c::ERROR_NO_DATA => return BrokenPipe,
74
- c::ERROR_INVALID_PARAMETER | c::ERROR_INVALID_NAME => return InvalidInput,
+ c::ERROR_INVALID_NAME => return FilenameInvalid,
75
+ c::ERROR_INVALID_PARAMETER => return InvalidInput,
76
c::ERROR_NOT_ENOUGH_MEMORY | c::ERROR_OUTOFMEMORY => return OutOfMemory,
77
c::ERROR_SEM_TIMEOUT
78
| c::WAIT_TIMEOUT
0 commit comments