Commit 703080af authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

winepulse: Avoid casting a COM object to an interface.

parent 5ad123f8
......@@ -981,7 +981,7 @@ HRESULT WINAPI AUDDRV_GetAudioEndpoint(GUID *guid, IMMDevice *dev, IAudioClient
for (i = 0; i < PA_CHANNELS_MAX; ++i)
This->vol[i] = 1.f;
hr = CoCreateFreeThreadedMarshaler((IUnknown*)This, &This->marshal);
hr = CoCreateFreeThreadedMarshaler((IUnknown*)&This->IAudioClient_iface, &This->marshal);
if (hr) {
HeapFree(GetProcessHeap(), 0, This);
return hr;
......
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