From 1ad44083ebaa4aca18335b94841dcdf501f39a8f Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Thu, 21 Mar 2013 20:52:42 +0200 Subject: [PATCH] FileView: Fix crash caused by creating thread even when another is active --- Plugins/PluginFileView/PluginFileView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/PluginFileView/PluginFileView.cpp b/Plugins/PluginFileView/PluginFileView.cpp index 93e21c84..c54f23ae 100644 --- a/Plugins/PluginFileView/PluginFileView.cpp +++ b/Plugins/PluginFileView/PluginFileView.cpp @@ -294,7 +294,7 @@ PLUGIN_EXPORT double Update(void* data) } EnterCriticalSection(&g_CriticalSection); - if (parent->ownerChild == child && (parent->needsUpdating || parent->needsIcons)) + if (!parent->threadActive && parent->ownerChild == child && (parent->needsUpdating || parent->needsIcons)) { unsigned int id; HANDLE thread = (HANDLE)_beginthreadex(nullptr, 0, UpdateInfoThreadProc, parent, 0, &id);