Skip to content

Commit

Permalink
(Windows) std/os: fix ReadDir will not throw any exception for errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Feb 19, 2025
1 parent 2c85a24 commit 633f255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/os/dir_windows.jule
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fn readDir(path: str)!: (dirents: []DirEntry) {
mut data := sys::Win32FindData{}
handle := unsafe { sys::FindFirstFile(&utf16Path[0], &data) }
if handle == sys::InvalidHandle {
ret
error(getLastFsErrorWindows())
}
for {
mut entry := DirEntry{
Expand Down

0 comments on commit 633f255

Please sign in to comment.