[filechoice] Fixed extension-matching in case a file without extension is present

This commit is contained in:
Raphael Coeffic
2021-08-04 07:15:17 +02:00
parent e487273ce9
commit 8314bb645e
+1 -1
View File
@@ -75,7 +75,7 @@ bool FileChoice::openMenu()
fnExt = getFileExtension(fno.fname, 0, 0, &fnLen, &extLen);
if (extension && !isExtensionMatching(fnExt, extension))
if (extension && (!fnExt || !isExtensionMatching(fnExt, extension)))
continue; // wrong extension
if (stripExtension) fnLen -= extLen;