Fix directory crawling on symlink-capable systems

This commit is contained in:
PypeBros 2020-08-06 18:34:14 +02:00
parent 209dfca35f
commit 5a368922c9
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ static void list_files(const char *filepath, ListCallback list_callback)
list_callback(rdir,EListCallbackArg_Item);
printf("cflash added %s\n",fname);
if (retro_dirent_is_dir(rdir, filepath) && (strcmp(fname, ".")) && strcmp(fname, ".."))
if (retro_dirent_is_dir(rdir, fname) && (strcmp(fname, ".")) && strcmp(fname, ".."))
{
std::string subdir = (std::string)filepath + path_default_slash() + fname;
list_files(subdir.c_str(), list_callback);