Fix: Autoupdater for 64 bit Linux

This commit is contained in:
def 2014-04-28 22:39:27 +02:00
parent 73bf2966f8
commit 92ad47b641

View file

@ -172,6 +172,8 @@ void CAutoUpdate::CheckUpdates(CMenus *pMenus)
dbg_msg("autoupdate", "Updating client"); dbg_msg("autoupdate", "Updating client");
#if defined(CONF_FAMILY_WINDOWS) #if defined(CONF_FAMILY_WINDOWS)
if (!GetFile("DDNet.exe", "DDNet_tmp.exe")) if (!GetFile("DDNet.exe", "DDNet_tmp.exe"))
#elif defined(CONF_ARCH_AMD64)
if (!GetFile("DDNet64", "DDNet_tmp"))
#else #else
if (!GetFile("DDNet", "DDNet_tmp")) if (!GetFile("DDNet", "DDNet_tmp"))
#endif #endif
@ -322,7 +324,7 @@ bool CAutoUpdate::GetFile(const char *pFile, const char *dst)
continue; continue;
} }
else if (aNetBuff[i]!='\r') else if (aNetBuff[i]!='\r')
enterCtrl=0; enterCtrl=0;
NetData+=aNetBuff[i]; NetData+=aNetBuff[i];
} }