From dc45ecbe6d98c7c72623d342f862927211a5e948 Mon Sep 17 00:00:00 2001 From: def Date: Sun, 1 May 2016 19:46:16 +0200 Subject: [PATCH] Try to fix du.bat --- src/engine/client/updater.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/client/updater.cpp b/src/engine/client/updater.cpp index 892c4f906..400fba295 100644 --- a/src/engine/client/updater.cpp +++ b/src/engine/client/updater.cpp @@ -287,7 +287,7 @@ void CUpdater::WinXpRestart() if(!bhFile) return; char bBuf[512]; - str_format(bBuf, sizeof(bBuf), ":_R\r\ndel \"DDNet.exe\"\r\nif exist \"DDNet.exe\" goto _R\r\nrename \"DDNet.tmp\" \"DDNet.exe\"\r\n:_T\r\nif not exist \"DDNet.exe\" goto _T\r\nstart DDNet.exe\r\ndel \"du.bat\"\r\n"); + str_format(bBuf, sizeof(bBuf), ":_R\r\ndel \"DDNet.exe\"\r\nif exist \"DDNet.exe\" goto _R\r\n:_T\r\nrename \"DDNet.tmp\" \"DDNet.exe\"\r\nif not exist \"DDNet.exe\" goto _T\r\nstart DDNet.exe\r\ndel \"du.bat\"\r\n"); io_write(bhFile, bBuf, str_length(bBuf)); io_close(bhFile); shell_execute(aBuf);