Commit 261d7c3d authored by Shaun Ren's avatar Shaun Ren Committed by Alexandre Julliard

sapi: Implement ISpeechObjectTokens::get_Count.

parent 59a7ee1a
...@@ -362,6 +362,11 @@ static void test_token_enum(void) ...@@ -362,6 +362,11 @@ static void test_token_enum(void)
hr = ISpObjectTokenEnumBuilder_AddTokens( token_enum, 3, tokens ); hr = ISpObjectTokenEnumBuilder_AddTokens( token_enum, 3, tokens );
ok( hr == S_OK, "got %08lx\n", hr ); 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 ); hr = ISpeechObjectTokens_get__NewEnum( speech_tokens, &unk );
ok( hr == S_OK, "got %08lx\n", hr ); ok( hr == S_OK, "got %08lx\n", hr );
hr = IUnknown_QueryInterface( unk, &IID_IEnumVARIANT, (void **)&enumvar ); hr = IUnknown_QueryInterface( unk, &IID_IEnumVARIANT, (void **)&enumvar );
......
...@@ -1313,8 +1313,11 @@ static HRESULT WINAPI speech_tokens_Invoke( ISpeechObjectTokens *iface, ...@@ -1313,8 +1313,11 @@ static HRESULT WINAPI speech_tokens_Invoke( ISpeechObjectTokens *iface,
static HRESULT WINAPI speech_tokens_get_Count( ISpeechObjectTokens *iface, static HRESULT WINAPI speech_tokens_get_Count( ISpeechObjectTokens *iface,
LONG *count ) LONG *count )
{ {
FIXME( "stub\n" ); struct token_enum *This = impl_from_ISpeechObjectTokens( iface );
return E_NOTIMPL;
TRACE( "(%p)->(%p)\n", This, count );
return ISpObjectTokenEnumBuilder_GetCount( &This->ISpObjectTokenEnumBuilder_iface, (ULONG *)count );
} }
static HRESULT WINAPI speech_tokens_Item( ISpeechObjectTokens *iface, static HRESULT WINAPI speech_tokens_Item( ISpeechObjectTokens *iface,
......
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