mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 14:58:30 +00:00
Fix issues for latest GCC toolchain
This commit is contained in:
parent
5cb9b2658c
commit
3b086af91b
22 changed files with 148 additions and 166 deletions
|
@ -185,6 +185,10 @@ static textwindows uint8_t GetNtDirentType(struct NtWin32FindData *w) {
|
|||
|
||||
static textwindows dontinline struct dirent *readdir_nt(DIR *dir) {
|
||||
TryAgain:
|
||||
while (!dir->isdone &&
|
||||
(dir->windata.dwFileAttributes & kNtFileAttributeSystem)) {
|
||||
dir->isdone = !FindNextFile(dir->hand, &dir->windata);
|
||||
}
|
||||
if (dir->isdone) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue