6 Sep
2022
6 Sep
'22
5:38 a.m.
R��mi Bernon (@rbernon) commented about dlls/windows.media.speech/recognizer.c:
static HRESULT WINAPI start_callback( IInspectable *invoker ) { - return S_OK; + struct session *impl = impl_from_ISpeechContinuousRecognitionSession((ISpeechContinuousRecognitionSession *)invoker); + HRESULT hr = S_OK; + + impl->session_running = TRUE; + impl->session_thread = CreateThread(NULL, 0, session_thread_cb, impl, 0, NULL);
You probably want to check that `CreateThread` succeeded, then eventually clear `session_running` and return an error. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/729#note_7748