fix bug in opendir/readdir emulation

This commit is contained in:
Ron Pedde 2006-03-01 23:25:50 +00:00
parent d44bd674c1
commit 64415a5c42

View File

@ -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);
if (dirp->dir_find_handle == INVALID_HANDLE_VALUE) {
*result=NULL;
return 2;
}
} else {