11 Jan
2023
11 Jan
'23
5 p.m.
Rémi Bernon (@rbernon) commented about dlls/windows.media.speech/recognizer.c:
while (running) { - status = WaitForMultipleObjects(1, &impl->worker_control_event, FALSE, INFINITE); + BOOLEAN old_paused = paused; + UINT32 count = 0; + + events[count++] = impl->worker_control_event; + if (!paused) events[count++] = impl->audio_buf_event; + + status = WaitForMultipleObjects(ARRAY_SIZE(events), events, FALSE, INFINITE);
You need to indicate the actual number of events, not always `ARRAY_SIZE(events)` here, or don't make the second event conditional. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/729#note_20705