Commit 58087358 authored by Shaun Ren's avatar Shaun Ren Committed by Alexandre Julliard

sapi: Implement ISpeechVoice::GetTypeInfoCount.

parent 62aec031
......@@ -435,6 +435,7 @@ static void test_spvoice(void)
ISpeechObjectTokens *speech_tokens;
LONG count;
BSTR req = NULL, opt = NULL;
UINT info_count;
HRESULT hr;
if (waveOutGetNumDevs() == 0) {
......@@ -713,6 +714,11 @@ static void test_spvoice(void)
hr = ISpeechVoice_Speak(speech_voice, NULL, SVSFPurgeBeforeSpeak, NULL);
ok(hr == S_OK, "got %#lx.\n", hr);
info_count = 0xdeadbeef;
hr = ISpeechVoice_GetTypeInfoCount(speech_voice, &info_count);
ok(hr == S_OK, "got %#lx.\n", hr);
ok(info_count == 1, "got %u.\n", info_count);
ISpeechVoice_Release(speech_voice);
done:
......
......@@ -179,11 +179,11 @@ static ULONG WINAPI speech_voice_Release(ISpeechVoice *iface)
return ref;
}
static HRESULT WINAPI speech_voice_GetTypeInfoCount(ISpeechVoice *iface, UINT *info)
static HRESULT WINAPI speech_voice_GetTypeInfoCount(ISpeechVoice *iface, UINT *count)
{
FIXME("(%p, %p): stub.\n", iface, info);
return E_NOTIMPL;
TRACE("(%p, %p).\n", iface, count);
*count = 1;
return S_OK;
}
static HRESULT WINAPI speech_voice_GetTypeInfo(ISpeechVoice *iface, UINT info, LCID lcid,
......
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