1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

osal_files_unix: fix osal_search_dir_read_next crash

This commit is contained in:
Rosalie 2021-11-01 18:17:36 +01:00 committed by Sergey Lipskiy
parent 472eef6c67
commit 9ebb11f37b

View File

@ -133,6 +133,9 @@ EXPORT const wchar_t * CALL osal_search_dir_read_next(void * dir_handle)
DIR *dir = (DIR *) dir_handle;
struct dirent *entry;
if (dir_handle == NULL)
return NULL;
entry = readdir(dir);
if (entry == NULL)
return NULL;