June 14, 2023
7:16 p.m.
Bernhard Kölbl (@besentv) commented about dlls/windows.media.speech/synthesizer.c:
+ voice_information_get_Id, + voice_information_get_Language, + voice_information_get_Description, + voice_information_get_Gender, +}; + +HRESULT voice_information_allocate(const WCHAR *display_name, const WCHAR *id, const WCHAR *locale, + VoiceGender gender, IVoiceInformation **pvoice) +{ + struct voice_information *voice_info; + WCHAR *description; + HRESULT hr; + size_t len, langlen; + + voice_info = calloc(1, sizeof(*voice_info)); + if (!voice_info) return E_OUTOFMEMORY; Make this a one liner, please. :))
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/3048#note_35724