1
0
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:
Valentin Radu 2021-11-10 21:21:27 +02:00
parent 3ab52f251c
commit 791541a3fb

View File

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