From: Bernhard Kölbl <bkoelbl@codeweavers.com> --- dlls/windows.media.speech/synthesizer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/windows.media.speech/synthesizer.c b/dlls/windows.media.speech/synthesizer.c index bbe6181c1d4..0209d7a0dcd 100644 --- a/dlls/windows.media.speech/synthesizer.c +++ b/dlls/windows.media.speech/synthesizer.c @@ -1801,12 +1801,16 @@ static HRESULT WINAPI installed_voices_static_get_DefaultVoice( IInstalledVoices EnterCriticalSection(&allvoices_cs); + if (FAILED(hr = static_installed_voices_init())) + goto end; + if (SUCCEEDED(hr = IVectorView_VoiceInformation_GetAt(&all_voices.IVectorView_VoiceInformation_iface, 0, &static_voice))) { hr = voice_information_clone(static_voice, value); IVoiceInformation_Release(static_voice); } +end: LeaveCriticalSection(&allvoices_cs); return hr; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10275