mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
FileView: Fix crash caused by creating thread even when another is active
This commit is contained in:
parent
f58f4d71b6
commit
1ad44083eb
@ -294,7 +294,7 @@ PLUGIN_EXPORT double Update(void* data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
EnterCriticalSection(&g_CriticalSection);
|
EnterCriticalSection(&g_CriticalSection);
|
||||||
if (parent->ownerChild == child && (parent->needsUpdating || parent->needsIcons))
|
if (!parent->threadActive && parent->ownerChild == child && (parent->needsUpdating || parent->needsIcons))
|
||||||
{
|
{
|
||||||
unsigned int id;
|
unsigned int id;
|
||||||
HANDLE thread = (HANDLE)_beginthreadex(nullptr, 0, UpdateInfoThreadProc, parent, 0, &id);
|
HANDLE thread = (HANDLE)_beginthreadex(nullptr, 0, UpdateInfoThreadProc, parent, 0, &id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user