Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-Cleanup: simplify ReadDir_ProcessAllFiles #221

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/os/readdir_win32.c
Expand Up @@ -40,11 +40,6 @@ bool ReadDir_ProcessAllFiles(const char * dirpath, bool (*cb)(const char * name,
cb(ffd.cFileName, path, size);
} while (FindNextFile(hFind, &ffd) != 0);

if (GetLastError() != ERROR_NO_MORE_FILES) {
FindClose (hFind);
return false;
}
FindClose (hFind);
return true;
return GetLastError() == ERROR_NO_MORE_FILES);
}