winepulse: Avoid casting a COM object to an interface.

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-11-23 11:57:40 +01:00 committed by Alexandre Julliard
parent 5ad123f851
commit 703080afb4
1 changed files with 1 additions and 1 deletions

View File

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