From f58f4d71b601cfa34364feed63a200a0ce6c9eb6 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Thu, 21 Mar 2013 18:11:21 +0200 Subject: [PATCH] Fix dumb mistake in 1562a24 --- Plugins/PluginFileView/PluginFileView.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Plugins/PluginFileView/PluginFileView.cpp b/Plugins/PluginFileView/PluginFileView.cpp index 7fd43307..93e21c84 100644 --- a/Plugins/PluginFileView/PluginFileView.cpp +++ b/Plugins/PluginFileView/PluginFileView.cpp @@ -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)