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

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:
Rémi Bernon 2021-03-12 12:31:12 +01:00 committed by Alexandre Julliard
parent af8b935892
commit 0c216c5d57
2 changed files with 8 additions and 5 deletions

View File

@ -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 =

View File

@ -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);