6 Sep
2022
6 Sep
'22
5:38 a.m.
R��mi Bernon (@rbernon) commented about dlls/windows.media.speech/recognizer.c:
if (!ref) { + BOOLEAN running = FALSE; + + EnterCriticalSection(&impl->cs); + running = impl->session_running; + LeaveCriticalSection(&impl->cs); + + if (running) shutdown_session_thread(iface);
You'd need to set `impl->session_running` to `FALSE` and `WakeConditionVariable` too before joining the thread. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/729#note_7753