runner: fix Restart as... option

This commit is contained in:
yuyoyuppe 2020-02-19 14:30:28 +03:00 committed by Andrey Nekrasov
parent 2c2a29cd91
commit d45b0dee10

View File

@ -213,7 +213,9 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
MessageBoxW(nullptr, std::wstring(err_what.begin(), err_what.end()).c_str(), GET_RESOURCE_STRING(IDS_ERROR).c_str(), MB_OK | MB_ICONERROR);
result = -1;
}
// We need to release mutices to be able to restart the application
msi_mutex.reset(nullptr);
msix_mutex.reset(nullptr);
if (is_restart_scheduled())
{
if (restart_if_scheduled() == false)