windows.media.speech: Make vector stub consistent with other WinRT stubs.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a29a12135a
commit
d831d9a4c5
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue