mirror of
https://github.com/valinet/ExplorerPatcher.git
synced 2025-01-24 15:22:22 +01:00
Settings monitor calls all callbacks when multiple registry entries are signaled at the same time
This commit is contained in:
parent
3ab52f251c
commit
791541a3fb
@ -62,6 +62,13 @@ DWORD WINAPI MonitorSettings(SettingsChangeParameters* params)
|
||||
{
|
||||
bShouldExit = TRUE;
|
||||
}
|
||||
for (unsigned int j = 0; j < params->size; ++j)
|
||||
{
|
||||
if (WaitForSingleObject(handles[j], 0) == WAIT_OBJECT_0)
|
||||
{
|
||||
params->settings[j].callback(params->settings[j].data);
|
||||
}
|
||||
}
|
||||
}
|
||||
free(handles);
|
||||
for (unsigned int i = 0; i < params->size; ++i)
|
||||
|
Loading…
x
Reference in New Issue
Block a user