[News] Run Updater with -update -c flags to tell it to restart IW4x after updating.

This commit is contained in:
/dev/urandom 2017-02-04 18:56:22 +01:00
parent a965fb1468
commit 97bdf1a842
No known key found for this signature in database
GPG Key ID: 41322B973E0F295E

View File

@ -51,7 +51,7 @@ namespace Components
ZeroMemory(&pInfo, sizeof(pInfo));
sInfo.cb = sizeof(sInfo);
CreateProcessA("updater.exe", nullptr, nullptr, nullptr, false, NULL, nullptr, nullptr, &sInfo, &pInfo);
CreateProcessA("updater.exe -update -c", nullptr, nullptr, nullptr, false, NULL, nullptr, nullptr, &sInfo, &pInfo);
if (pInfo.hThread && pInfo.hThread != INVALID_HANDLE_VALUE) CloseHandle(pInfo.hThread);
if (pInfo.hProcess && pInfo.hProcess != INVALID_HANDLE_VALUE) CloseHandle(pInfo.hProcess);