Commit d831d9a4 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

windows.media.speech: Make vector stub consistent with other WinRT stubs.

parent a29a1213
...@@ -119,7 +119,8 @@ static HRESULT STDMETHODCALLTYPE vector_view_voice_information_GetAt( ...@@ -119,7 +119,8 @@ static HRESULT STDMETHODCALLTYPE vector_view_voice_information_GetAt(
IVectorView_VoiceInformation *iface, UINT32 index, IVoiceInformation **value) IVectorView_VoiceInformation *iface, UINT32 index, IVoiceInformation **value)
{ {
FIXME("iface %p, index %#x, value %p stub!\n", iface, index, 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( static HRESULT STDMETHODCALLTYPE vector_view_voice_information_get_Size(
...@@ -131,10 +132,11 @@ 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( 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); FIXME("iface %p, element %p, index %p, found %p stub!\n", iface, element, index, found);
*value = FALSE; *index = 0;
*found = FALSE;
return S_OK; return S_OK;
} }
......
...@@ -99,6 +99,11 @@ static void test_SpeechSynthesizer(void) ...@@ -99,6 +99,11 @@ static void test_SpeechSynthesizer(void)
ok(hr == S_OK, "IVectorView_VoiceInformation_get_Size voices failed, hr %#x\n", hr); 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); 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); hr = IVectorView_VoiceInformation_GetMany(voices, size, 1, &voice, &size);
ok(hr == S_OK, "IVectorView_VoiceInformation_GetMany failed, hr %#x\n", hr); ok(hr == S_OK, "IVectorView_VoiceInformation_GetMany failed, hr %#x\n", hr);
ok(size == 0, "IVectorView_VoiceInformation_GetMany returned count %u\n", size); ok(size == 0, "IVectorView_VoiceInformation_GetMany returned count %u\n", size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment