Commit 211f2c7b authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

sapi: Implement SpObjectTokenEnum::GetCount().

parent 77b7bd19
...@@ -234,6 +234,7 @@ struct token_enum ...@@ -234,6 +234,7 @@ struct token_enum
BOOL init; BOOL init;
WCHAR *req, *opt; WCHAR *req, *opt;
ULONG count;
}; };
struct token_enum *impl_from_ISpObjectTokenEnumBuilder( ISpObjectTokenEnumBuilder *iface ) struct token_enum *impl_from_ISpObjectTokenEnumBuilder( ISpObjectTokenEnumBuilder *iface )
...@@ -326,8 +327,14 @@ static HRESULT WINAPI token_enum_Item( ISpObjectTokenEnumBuilder *iface, ...@@ -326,8 +327,14 @@ static HRESULT WINAPI token_enum_Item( ISpObjectTokenEnumBuilder *iface,
static HRESULT WINAPI token_enum_GetCount( ISpObjectTokenEnumBuilder *iface, static HRESULT WINAPI token_enum_GetCount( ISpObjectTokenEnumBuilder *iface,
ULONG *count ) ULONG *count )
{ {
FIXME( "stub\n" ); struct token_enum *This = impl_from_ISpObjectTokenEnumBuilder( iface );
return E_NOTIMPL;
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, static HRESULT WINAPI token_enum_SetAttribs( ISpObjectTokenEnumBuilder *iface,
...@@ -417,6 +424,7 @@ HRESULT token_enum_create( IUnknown *outer, REFIID iid, void **obj ) ...@@ -417,6 +424,7 @@ HRESULT token_enum_create( IUnknown *outer, REFIID iid, void **obj )
This->req = NULL; This->req = NULL;
This->opt = NULL; This->opt = NULL;
This->init = FALSE; This->init = FALSE;
This->count = 0;
hr = ISpObjectTokenEnumBuilder_QueryInterface( &This->ISpObjectTokenEnumBuilder_iface, iid, obj ); hr = ISpObjectTokenEnumBuilder_QueryInterface( &This->ISpObjectTokenEnumBuilder_iface, iid, obj );
......
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