1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

sapi: Implement ISpeechObjectTokens::get_Count.

This commit is contained in:
Shaun Ren 2024-02-06 16:37:07 -05:00 committed by Alexandre Julliard
parent 59a7ee1a2c
commit 261d7c3de4
2 changed files with 10 additions and 2 deletions

View file

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

View file

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