Rémi Bernon : windows.media.speech: Make vector stub consistent with other WinRT stubs.
Alexandre Julliard
julliard at winehq.org
Tue Mar 23 16:54:31 CDT 2021
Module: wine
Branch: master
Commit: d831d9a4c528d6bb288c9fd56875b274e04a9dfd
URL: https://source.winehq.org/git/wine.git/?a=commit;h=d831d9a4c528d6bb288c9fd56875b274e04a9dfd
Author: Rémi Bernon <rbernon at codeweavers.com>
Date: Tue Mar 23 11:23:18 2021 +0100
windows.media.speech: Make vector stub consistent with other WinRT stubs.
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 | 10 ++++++----
dlls/windows.media.speech/tests/speech.c | 5 +++++
2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/dlls/windows.media.speech/main.c b/dlls/windows.media.speech/main.c
index c358b991be2..31847a2eb6a 100644
--- a/dlls/windows.media.speech/main.c
+++ b/dlls/windows.media.speech/main.c
@@ -119,7 +119,8 @@ static HRESULT STDMETHODCALLTYPE vector_view_voice_information_GetAt(
IVectorView_VoiceInformation *iface, UINT32 index, IVoiceInformation **value)
{
FIXME("iface %p, index %#x, value %p stub!\n", iface, index, value);
- return S_OK;
+ *value = NULL;
+ return E_BOUNDS;
}
static HRESULT STDMETHODCALLTYPE vector_view_voice_information_get_Size(
@@ -131,10 +132,11 @@ static HRESULT STDMETHODCALLTYPE vector_view_voice_information_get_Size(
}
static HRESULT STDMETHODCALLTYPE vector_view_voice_information_IndexOf(
- IVectorView_VoiceInformation *iface, IVoiceInformation *element, UINT32 *index, BOOLEAN *value)
+ IVectorView_VoiceInformation *iface, IVoiceInformation *element, UINT32 *index, BOOLEAN *found)
{
- FIXME("iface %p, element %p, index %p, value %p stub!\n", iface, element, index, value);
- *value = FALSE;
+ FIXME("iface %p, element %p, index %p, found %p stub!\n", iface, element, index, found);
+ *index = 0;
+ *found = FALSE;
return S_OK;
}
diff --git a/dlls/windows.media.speech/tests/speech.c b/dlls/windows.media.speech/tests/speech.c
index 770562e9d82..1c48c5bf933 100644
--- a/dlls/windows.media.speech/tests/speech.c
+++ b/dlls/windows.media.speech/tests/speech.c
@@ -99,6 +99,11 @@ static void test_SpeechSynthesizer(void)
ok(hr == S_OK, "IVectorView_VoiceInformation_get_Size voices failed, hr %#x\n", hr);
todo_wine ok(size != 0 && size != 0xdeadbeef, "IVectorView_VoiceInformation_get_Size returned %u\n", size);
+ voice = (IVoiceInformation *)0xdeadbeef;
+ hr = IVectorView_VoiceInformation_GetAt(voices, size, &voice);
+ ok(hr == E_BOUNDS, "IVectorView_VoiceInformation_GetAt failed, hr %#x\n", hr);
+ ok(voice == NULL, "IVectorView_VoiceInformation_GetAt returned %p\n", voice);
+
hr = IVectorView_VoiceInformation_GetMany(voices, size, 1, &voice, &size);
ok(hr == S_OK, "IVectorView_VoiceInformation_GetMany failed, hr %#x\n", hr);
ok(size == 0, "IVectorView_VoiceInformation_GetMany returned count %u\n", size);
More information about the wine-cvs
mailing list