Commit d7f4d076 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

winstore: fix activation callback parameters handling

parent b592e72f
...@@ -101,8 +101,13 @@ static void Flush(audio_output_t *aout, bool wait) ...@@ -101,8 +101,13 @@ static void Flush(audio_output_t *aout, bool wait)
static HRESULT ActivateDevice(void *opaque, REFIID iid, PROPVARIANT *actparms, static HRESULT ActivateDevice(void *opaque, REFIID iid, PROPVARIANT *actparms,
void **restrict pv) void **restrict pv)
{ {
(void) iid; (void) actparms; IAudioClient *client = opaque;
IAudioClient* client = (IAudioClient*)opaque;
if (!IsEqualIID(iid, &IID_IAudioClient))
return E_NOINTERFACE;
if (actparms != NULL)
return E_INVALIDARG;
IAudioClient_AddRef(client); IAudioClient_AddRef(client);
*pv = opaque; *pv = opaque;
......
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