We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f89e57 commit 2241d16Copy full SHA for 2241d16
library/std/src/sys/pal/windows/fs.rs
@@ -1081,9 +1081,9 @@ pub fn readdir(p: &Path) -> io::Result<ReadDir> {
1081
//
1082
// See issue #120040: https://github.com/rust-lang/rust/issues/120040.
1083
let last_error = Error::last_os_error();
1084
- if last_error.raw_os_error().unwrap() == c::ERROR_FILE_NOT_FOUND && p.exists() {
+ if last_error.raw_os_error().unwrap() == c::ERROR_FILE_NOT_FOUND as i32 && p.exists() {
1085
return Ok(ReadDir {
1086
- handle: FindNextFileHandle(file_handle),
+ handle: FindNextFileHandle(find_handle),
1087
root: Arc::new(root),
1088
first: None,
1089
});
0 commit comments