mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-19 17:58:15 +00:00
Corrected bug on no-extension
This commit is contained in:
@@ -1798,6 +1798,8 @@ bool IsFileExtension(const char *fileName, const char *ext)
|
|||||||
bool result = false;
|
bool result = false;
|
||||||
const char *fileExt = GetExtension(fileName);
|
const char *fileExt = GetExtension(fileName);
|
||||||
|
|
||||||
|
if (fileExt != NULL)
|
||||||
|
{
|
||||||
int extCount = 0;
|
int extCount = 0;
|
||||||
const char **checkExts = TextSplit(ext, ';', &extCount);
|
const char **checkExts = TextSplit(ext, ';', &extCount);
|
||||||
|
|
||||||
@@ -1809,6 +1811,7 @@ bool IsFileExtension(const char *fileName, const char *ext)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user