mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 13:19:53 +00:00
sapi: Implement SpObjectTokenEnum::GetCount().
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
77b7bd19c5
commit
211f2c7b93
|
@ -234,6 +234,7 @@ struct token_enum
|
|||
|
||||
BOOL init;
|
||||
WCHAR *req, *opt;
|
||||
ULONG count;
|
||||
};
|
||||
|
||||
struct token_enum *impl_from_ISpObjectTokenEnumBuilder( ISpObjectTokenEnumBuilder *iface )
|
||||
|
@ -326,8 +327,14 @@ static HRESULT WINAPI token_enum_Item( ISpObjectTokenEnumBuilder *iface,
|
|||
static HRESULT WINAPI token_enum_GetCount( ISpObjectTokenEnumBuilder *iface,
|
||||
ULONG *count )
|
||||
{
|
||||
FIXME( "stub\n" );
|
||||
return E_NOTIMPL;
|
||||
struct token_enum *This = impl_from_ISpObjectTokenEnumBuilder( iface );
|
||||
|
||||
TRACE( "(%p)->(%p)\n", This, count );
|
||||
|
||||
if (!This->init) return SPERR_UNINITIALIZED;
|
||||
|
||||
*count = This->count;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI token_enum_SetAttribs( ISpObjectTokenEnumBuilder *iface,
|
||||
|
@ -417,6 +424,7 @@ HRESULT token_enum_create( IUnknown *outer, REFIID iid, void **obj )
|
|||
This->req = NULL;
|
||||
This->opt = NULL;
|
||||
This->init = FALSE;
|
||||
This->count = 0;
|
||||
|
||||
hr = ISpObjectTokenEnumBuilder_QueryInterface( &This->ISpObjectTokenEnumBuilder_iface, iid, obj );
|
||||
|
||||
|
|
Loading…
Reference in a new issue