diff options
Diffstat (limited to 'audio/out/ao_wasapi_changenotify.c')
-rwxr-xr-x | audio/out/ao_wasapi_changenotify.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/audio/out/ao_wasapi_changenotify.c b/audio/out/ao_wasapi_changenotify.c index ea7e2c6aa7..6f2263a3ec 100755 --- a/audio/out/ao_wasapi_changenotify.c +++ b/audio/out/ao_wasapi_changenotify.c @@ -52,7 +52,8 @@ static HRESULT STDMETHODCALLTYPE sIMMNotificationClient_QueryInterface( { /* Compatible with IMMNotificationClient and IUnknown */ if (IsEqualGUID(&IID_IMMNotificationClient, riid) || - IsEqualGUID(&IID_IUnknown, riid)) { + IsEqualGUID(&IID_IUnknown, riid)) + { *ppvObject = (void *)This; return S_OK; } else { @@ -231,9 +232,10 @@ void wasapi_change_uninit(struct ao *ao) struct wasapi_state *state = (struct wasapi_state *)ao->priv; struct change_notify *change = &state->change; - if(state->pEnumerator && change->client.lpVtbl) + if (state->pEnumerator && change->client.lpVtbl) { IMMDeviceEnumerator_UnregisterEndpointNotificationCallback( state->pEnumerator, (IMMNotificationClient *)change); + } if (change->monitored) CoTaskMemFree(change->monitored); } |