8 Jan
2023
8 Jan
'23
6:28 p.m.
Jinoh Kang (@iamahuman) commented about dlls/windows.media.speech/recognizer.c:
- FIXME("iface %p, action %p stub!\n", iface, action); - return async_action_create(NULL, start_callback, action); + struct session *impl = impl_from_ISpeechContinuousRecognitionSession(iface); + BOOLEAN invalid_state = FALSE; + HRESULT hr; + + TRACE("iface %p, action %p.\n", iface, action); + + *action = NULL; + + EnterCriticalSection(&impl->cs); + if (!impl->worker_running && !impl->worker_thread) + impl->worker_running = TRUE; + else + invalid_state = TRUE; + LeaveCriticalSection(&impl->cs); Do we want to reset `impl->worker_paused` here?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/729#note_20519