FileView: Fix crash caused by creating thread even when another is active

This commit is contained in:
Birunthan Mohanathas 2013-03-21 20:52:42 +02:00
parent f58f4d71b6
commit 1ad44083eb

View File

@ -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);