Fix autoupdater

This commit is contained in:
def 2015-05-08 20:40:47 +02:00
parent 6b25d81938
commit 360be2b727

View file

@ -118,7 +118,7 @@ void CUpdater::ReplaceClient()
dbg_msg("updater", "Replacing " PLAT_CLIENT_EXEC); dbg_msg("updater", "Replacing " PLAT_CLIENT_EXEC);
//Replace running executable by renaming twice... //Replace running executable by renaming twice...
if(m_IsWinXP) if(!m_IsWinXP)
{ {
m_pStorage->RemoveBinaryFile("DDNet.old"); m_pStorage->RemoveBinaryFile("DDNet.old");
m_pStorage->RenameBinaryFile(PLAT_CLIENT_EXEC, "DDNet.old"); m_pStorage->RenameBinaryFile(PLAT_CLIENT_EXEC, "DDNet.old");