Ignore non-existing dll file

Happened when adding the new sqlite3.dll file.
This commit is contained in:
def 2020-08-11 14:06:35 +02:00
parent 5663357fef
commit b756eaf6dc

View file

@ -153,7 +153,7 @@ bool CUpdater::MoveFile(const char *pFile)
if(!str_comp_nocase(pFile + len - 4, ".dll") || !str_comp_nocase(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); str_format(aBuf, sizeof(aBuf), "%s.old", pFile);
Success &= m_pStorage->RenameBinaryFile(pFile, aBuf); m_pStorage->RenameBinaryFile(pFile, aBuf);
str_format(aBuf, sizeof(aBuf), "update/%s", pFile); str_format(aBuf, sizeof(aBuf), "update/%s", pFile);
Success &= m_pStorage->RenameBinaryFile(aBuf, pFile); Success &= m_pStorage->RenameBinaryFile(aBuf, pFile);
} }