[PATCH] sapi: ISpObjectToken CreateInstance support ISpAudio

Nikolay Sivov nsivov at codeweavers.com
Tue Sep 28 18:06:52 CDT 2021



On 9/28/21 12:36 PM, Alistair Leslie-Hughes wrote:
>  static HRESULT WINAPI token_CreateInstance( ISpObjectToken *iface,
>                                              IUnknown *outer,
>                                              DWORD class_context,
>                                              REFIID riid,
>                                              void **object )
>  {
> -    FIXME( "stub\n" );
> +    struct object_token *This = impl_from_ISpObjectToken( iface );
> +
> +    TRACE( "(%p)->(%p 0x%08x %s, %p)\n", This, outer, class_context, debugstr_guid( riid ), object);
> +
> +    if (IsEqualIID(riid, &IID_ISpAudio))
> +    {
> +        return speech_audio_create(object);
> +    }
> +
> +    FIXME( "Unsupported interface %s\n", debugstr_guid( riid ));
>      return E_NOTIMPL;
>  }
>  
This doesn't look right. I think it should do normal object activation,
on a CLSID stored one way or another (indirectly via SetID maybe?).



More information about the wine-devel mailing list