Fix dumb mistake in 1562a24

This commit is contained in:
Birunthan Mohanathas 2013-03-21 18:11:21 +02:00
parent 1562a24322
commit f58f4d71b6

View File

@ -914,7 +914,11 @@ unsigned __stdcall UpdateInfoThreadProc(void* pParam)
HMODULE module = NULL;
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
// unreferenced data.
@ -924,7 +928,6 @@ unsigned __stdcall UpdateInfoThreadProc(void* pParam)
GetModuleHandleEx(flags, (LPCWSTR)DllMain, &module);
}
parent->threadActive = false;
LeaveCriticalSection(&g_CriticalSection);
if (module)