Rémi Bernon : windows.media.speech: Fake empty IInstalledVoicesStatic::AllVoices vector.

Alexandre Julliard julliard at winehq.org
Mon Mar 15 16:59:14 CDT 2021


Module: wine
Branch: master
Commit: 0c216c5d5735c7808478171b380254aad6fe2603
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=0c216c5d5735c7808478171b380254aad6fe2603

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Fri Mar 12 12:31:12 2021 +0100

windows.media.speech: Fake empty IInstalledVoicesStatic::AllVoices vector.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/windows.media.speech/main.c          | 11 +++++++----
 dlls/windows.media.speech/tests/statics.c |  2 +-
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/dlls/windows.media.speech/main.c b/dlls/windows.media.speech/main.c
index 28b1c45c4fd..92215fe717d 100644
--- a/dlls/windows.media.speech/main.c
+++ b/dlls/windows.media.speech/main.c
@@ -119,28 +119,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 =
diff --git a/dlls/windows.media.speech/tests/statics.c b/dlls/windows.media.speech/tests/statics.c
index 30994b3ac1d..8454729f9c3 100644
--- a/dlls/windows.media.speech/tests/statics.c
+++ b/dlls/windows.media.speech/tests/statics.c
@@ -100,7 +100,7 @@ static void test_SpeechSynthesizer(void)
 
     size = 0xdeadbeef;
     hr = IVectorView_VoiceInformation_get_Size(voices, &size);
-    todo_wine ok(SUCCEEDED(hr), "IVectorView_VoiceInformation_QueryInterface voices failed, hr %#x\n", hr);
+    ok(SUCCEEDED(hr), "IVectorView_VoiceInformation_QueryInterface voices failed, hr %#x\n", hr);
     todo_wine ok(size != 0 && size != 0xdeadbeef, "IVectorView_VoiceInformation_get_Size returned %u\n", size);
 
     rc = IVectorView_VoiceInformation_Release(voices);




More information about the wine-cvs mailing list