mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 19:57:57 +01:00
runner: fix Restart as... option
This commit is contained in:
committed by
Andrey Nekrasov
parent
2c2a29cd91
commit
d45b0dee10
@@ -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);
|
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;
|
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 (is_restart_scheduled())
|
||||||
{
|
{
|
||||||
if (restart_if_scheduled() == false)
|
if (restart_if_scheduled() == false)
|
||||||
|
|||||||
Reference in New Issue
Block a user