diff --git a/src/filesrch.c b/src/filesrch.c index f3a94bb88..b7f1a141f 100644 --- a/src/filesrch.c +++ b/src/filesrch.c @@ -477,7 +477,7 @@ filestatus_t filesearch(char *filename, const char *startpath, const UINT8 *want for (; *path != NULL; path++) { - if (strcasecmp(*path, dent->d_name)) + if (strcasecmp(*path, dent->d_name) == 0) { skipfolder = true; break;