Case-insensitive

This commit is contained in:
def 2016-05-01 11:23:56 +02:00
parent 53a7623191
commit 6b3e0981a1

View file

@ -79,7 +79,7 @@ void CUpdater::MoveFile(const char *pFile)
{
char aBuf[256];
size_t len = str_length(pFile);
if(!str_comp(pFile + len - 4, ".dll") || !str_comp(pFile + len - 4, ".ttf"))
if(!str_comp_nocase(pFile + len - 4, ".dll") || !str_comp_nocase(pFile + len - 4, ".ttf"))
{
str_format(aBuf, sizeof(aBuf), "%s.old", pFile);
m_pStorage->RenameBinaryFile(pFile, aBuf);