6 Sep
2022
6 Sep
'22
5:38 a.m.
R��mi Bernon (@rbernon) commented about dlls/windows.media.speech/recognizer.c:
{ - FIXME("iface %p stub!\n", iface); - return E_NOTIMPL; + struct session *impl = impl_from_ISpeechContinuousRecognitionSession(iface); + + TRACE("iface %p stub!\n", iface); + + EnterCriticalSection(&impl->cs); + if (impl->session_thread && impl->session_running && impl->session_paused) + { + impl->session_paused = FALSE; + LeaveCriticalSection(&impl->cs); + + SetEvent(impl->session_resume_event); + } + else LeaveCriticalSection(&impl->cs); That would be instead:
EnterCriticalSection(&impl->cs);
if (impl->session_running) impl->session_paused = FALSE;
LeaveCriticalSection(&impl->cs);
WakeConditionVariable(aimpl->cv);
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/729#note_7749