[News] Run Updater with -update -c flags to tell it to restart IW4x after updating.
This commit is contained in:
parent
a965fb1468
commit
97bdf1a842
@ -51,7 +51,7 @@ namespace Components
|
|||||||
ZeroMemory(&pInfo, sizeof(pInfo));
|
ZeroMemory(&pInfo, sizeof(pInfo));
|
||||||
sInfo.cb = sizeof(sInfo);
|
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.hThread && pInfo.hThread != INVALID_HANDLE_VALUE) CloseHandle(pInfo.hThread);
|
||||||
if (pInfo.hProcess && pInfo.hProcess != INVALID_HANDLE_VALUE) CloseHandle(pInfo.hProcess);
|
if (pInfo.hProcess && pInfo.hProcess != INVALID_HANDLE_VALUE) CloseHandle(pInfo.hProcess);
|
||||||
|
Loading…
Reference in New Issue
Block a user