1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2025-01-31 03:53:44 +01:00

Weather: Terminate host process when widget is disabled

This commit is contained in:
Valentin Radu 2022-02-07 00:50:43 +02:00
parent 905d5cdf12
commit 8cec8a9892

View File

@ -537,6 +537,8 @@ ULONG STDMETHODCALLTYPE epw_Weather_Release(EPWeather* _this)
{
}
TerminateProcess(GetCurrentProcess(), 0);
return(0);
}
return value;
@ -963,6 +965,7 @@ DWORD WINAPI epw_Weather_MainThread(EPWeather* _this)
}
else if (dwRes == WAIT_ABANDONED_0 + 1 || dwRes == WAIT_OBJECT_0 + 1)
{
if (dwRes == WAIT_OBJECT_0 + 1) ReleaseMutex(_this->hSignalKillSwitch);
CloseHandle(_this->hSignalKillSwitch);
TerminateProcess(GetCurrentProcess(), 0);
}