(3DS) opendir with an empty string isn't returning NULL as it should.

This commit is contained in:
aliaspider 2016-10-04 19:40:36 +01:00
parent 23eef2c6ee
commit e9618dd6a0

View File

@ -44,6 +44,9 @@ struct RDIR *retro_opendir(const char *name)
rdir->directory = FindFirstFile(path_buf, &rdir->entry);
#elif defined(VITA) || defined(PSP)
rdir->directory = sceIoDopen(name);
#elif defined(_3DS)
rdir->directory = (name && *name)? opendir(name) : NULL;
rdir->entry = NULL;
#elif defined(__CELLOS_LV2__)
rdir->error = cellFsOpendir(name, &rdir->directory);
#else