IsFileExtension(): Review issue with no-extension files
This commit is contained in:
parent
a748c3bf25
commit
22b7713287
1 changed files with 3 additions and 3 deletions
|
@ -1834,15 +1834,15 @@ bool IsFileExtension(const char *fileName, const char *ext)
|
|||
{
|
||||
bool result = false;
|
||||
const char *fileExt = GetExtension(fileName);
|
||||
char fileExtLower[16] = { 0 };
|
||||
|
||||
strcpy(fileExtLower, TextToLower(fileExt));
|
||||
|
||||
if (fileExt != NULL)
|
||||
{
|
||||
int extCount = 0;
|
||||
const char **checkExts = TextSplit(ext, ';', &extCount);
|
||||
|
||||
char fileExtLower[16] = { 0 };
|
||||
strcpy(fileExtLower, TextToLower(fileExt));
|
||||
|
||||
for (int i = 0; i < extCount; i++)
|
||||
{
|
||||
if (TextIsEqual(fileExtLower, TextToLower(checkExts[i] + 1)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue