mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
osal_files_unix: fix osal_search_dir_read_next crash
This commit is contained in:
parent
472eef6c67
commit
9ebb11f37b
|
@ -133,6 +133,9 @@ EXPORT const wchar_t * CALL osal_search_dir_read_next(void * dir_handle)
|
||||||
DIR *dir = (DIR *) dir_handle;
|
DIR *dir = (DIR *) dir_handle;
|
||||||
struct dirent *entry;
|
struct dirent *entry;
|
||||||
|
|
||||||
|
if (dir_handle == NULL)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
entry = readdir(dir);
|
entry = readdir(dir);
|
||||||
if (entry == NULL)
|
if (entry == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user