Change variable to local to avoid clashes on threads

This commit is contained in:
baldurk
2026-05-18 17:29:30 +01:00
parent 034264e961
commit e5913acec2
+2 -1
View File
@@ -153,7 +153,6 @@ struct CachedHookData
std::map<rdcstr, DllHookset> DllHooks;
HMODULE ownmodule = NULL;
Threading::CriticalSection lock;
char lowername[512] = {};
std::set<rdcstr> ignores;
@@ -164,6 +163,8 @@ struct CachedHookData
void ApplyHooks(const char *modName, HMODULE module)
{
char lowername[512] = {};
{
size_t i = 0;
while(modName[i])