sapi: Implement ISpeechObjectTokens::get_Count.
This commit is contained in:
parent
59a7ee1a2c
commit
261d7c3de4
2 changed files with 10 additions and 2 deletions
|
@ -362,6 +362,11 @@ static void test_token_enum(void)
|
|||
hr = ISpObjectTokenEnumBuilder_AddTokens( token_enum, 3, tokens );
|
||||
ok( hr == S_OK, "got %08lx\n", hr );
|
||||
|
||||
count = 0xdeadbeef;
|
||||
hr = ISpeechObjectTokens_get_Count( speech_tokens, (LONG *)&count );
|
||||
ok( hr == S_OK, "got %08lx\n", hr );
|
||||
ok( count == 3, "got %lu\n", count );
|
||||
|
||||
hr = ISpeechObjectTokens_get__NewEnum( speech_tokens, &unk );
|
||||
ok( hr == S_OK, "got %08lx\n", hr );
|
||||
hr = IUnknown_QueryInterface( unk, &IID_IEnumVARIANT, (void **)&enumvar );
|
||||
|
|
|
@ -1313,8 +1313,11 @@ static HRESULT WINAPI speech_tokens_Invoke( ISpeechObjectTokens *iface,
|
|||
static HRESULT WINAPI speech_tokens_get_Count( ISpeechObjectTokens *iface,
|
||||
LONG *count )
|
||||
{
|
||||
FIXME( "stub\n" );
|
||||
return E_NOTIMPL;
|
||||
struct token_enum *This = impl_from_ISpeechObjectTokens( iface );
|
||||
|
||||
TRACE( "(%p)->(%p)\n", This, count );
|
||||
|
||||
return ISpObjectTokenEnumBuilder_GetCount( &This->ISpObjectTokenEnumBuilder_iface, (ULONG *)count );
|
||||
}
|
||||
|
||||
static HRESULT WINAPI speech_tokens_Item( ISpeechObjectTokens *iface,
|
||||
|
|
Loading…
Add table
Reference in a new issue