mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Fix dumb mistake in 1562a24
This commit is contained in:
parent
1562a24322
commit
f58f4d71b6
@ -914,7 +914,11 @@ unsigned __stdcall UpdateInfoThreadProc(void* pParam)
|
|||||||
HMODULE module = NULL;
|
HMODULE module = NULL;
|
||||||
|
|
||||||
EnterCriticalSection(&g_CriticalSection);
|
EnterCriticalSection(&g_CriticalSection);
|
||||||
if (!parent->threadActive)
|
if (parent->threadActive)
|
||||||
|
{
|
||||||
|
parent->threadActive = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
// Thread is not attached to an existing measure any longer, so delete
|
// Thread is not attached to an existing measure any longer, so delete
|
||||||
// unreferenced data.
|
// unreferenced data.
|
||||||
@ -924,7 +928,6 @@ unsigned __stdcall UpdateInfoThreadProc(void* pParam)
|
|||||||
GetModuleHandleEx(flags, (LPCWSTR)DllMain, &module);
|
GetModuleHandleEx(flags, (LPCWSTR)DllMain, &module);
|
||||||
}
|
}
|
||||||
|
|
||||||
parent->threadActive = false;
|
|
||||||
LeaveCriticalSection(&g_CriticalSection);
|
LeaveCriticalSection(&g_CriticalSection);
|
||||||
|
|
||||||
if (module)
|
if (module)
|
||||||
|
Loading…
Reference in New Issue
Block a user