Corrected bug on no-extension
This commit is contained in:
parent
e25f4dca1f
commit
c1d282d9e8
1 changed files with 10 additions and 7 deletions
|
@ -1798,6 +1798,8 @@ bool IsFileExtension(const char *fileName, const char *ext)
|
|||
bool result = false;
|
||||
const char *fileExt = GetExtension(fileName);
|
||||
|
||||
if (fileExt != NULL)
|
||||
{
|
||||
int extCount = 0;
|
||||
const char **checkExts = TextSplit(ext, ';', &extCount);
|
||||
|
||||
|
@ -1809,6 +1811,7 @@ bool IsFileExtension(const char *fileName, const char *ext)
|
|||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue