fix bug in opendir/readdir emulation
This commit is contained in:
parent
d44bd674c1
commit
64415a5c42
|
@ -542,6 +542,7 @@ int os_readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result) {
|
||||||
dirp->dir_find_handle = FindFirstFile (filename, &dirp->dir_find_data);
|
dirp->dir_find_handle = FindFirstFile (filename, &dirp->dir_find_data);
|
||||||
|
|
||||||
if (dirp->dir_find_handle == INVALID_HANDLE_VALUE) {
|
if (dirp->dir_find_handle == INVALID_HANDLE_VALUE) {
|
||||||
|
*result=NULL;
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue