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.