[PATCH 4/4] windows.media.speech: Fake empty IInstalledVoicesStatic::AllVoices vector.

Rémi Bernon rbernon at codeweavers.com
Thu Mar 4 02:29:57 CST 2021


Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49740
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
 .../windows.media.speech_main.c                       | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/dlls/windows.media.speech.dll/windows.media.speech_main.c b/dlls/windows.media.speech.dll/windows.media.speech_main.c
index 69f434c87c4..bc075b16f17 100644
--- a/dlls/windows.media.speech.dll/windows.media.speech_main.c
+++ b/dlls/windows.media.speech.dll/windows.media.speech_main.c
@@ -112,28 +112,31 @@ static HRESULT STDMETHODCALLTYPE vector_view_voice_information_GetAt(
     IVectorView_VoiceInformation *iface, ULONG index, IVoiceInformation **value)
 {
     FIXME("iface %p, index %#x, value %p stub!\n", iface, index, value);
-    return E_NOTIMPL;
+    return S_OK;
 }
 
 static HRESULT STDMETHODCALLTYPE vector_view_voice_information_get_Size(
     IVectorView_VoiceInformation *iface, ULONG *value)
 {
     FIXME("iface %p, value %p stub!\n", iface, value);
-    return E_NOTIMPL;
+    *value = 0;
+    return S_OK;
 }
 
 static HRESULT STDMETHODCALLTYPE vector_view_voice_information_IndexOf(
     IVectorView_VoiceInformation *iface, IVoiceInformation *element, ULONG *index, BOOLEAN *value)
 {
     FIXME("iface %p, element %p, index %p, value %p stub!\n", iface, element, index, value);
-    return E_NOTIMPL;
+    *value = FALSE;
+    return S_OK;
 }
 
 static HRESULT STDMETHODCALLTYPE vector_view_voice_information_GetMany(
     IVectorView_VoiceInformation *iface, ULONG start_index, IVoiceInformation **items, UINT *value)
 {
     FIXME("iface %p, start_index %#x, items %p, value %p stub!\n", iface, start_index, items, value);
-    return E_NOTIMPL;
+    *value = 0;
+    return S_OK;
 }
 
 static const struct IVectorView_VoiceInformationVtbl vector_view_voice_information_vtbl =
-- 
2.30.0




More information about the wine-devel mailing list