mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-24 06:05:56 -05:00
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);
|
||||
|
||||
if (dirp->dir_find_handle == INVALID_HANDLE_VALUE) {
|
||||
*result=NULL;
|
||||
return 2;
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user