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:
parent
5ad123f851
commit
703080afb4
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue