mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-07 21:03:00 -05:00
fix bug in opendir/readdir emulation
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user