dmusic: Avoid using the COM method implementations directly.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
44cd385af3
commit
dd8d5f3820
|
@ -138,7 +138,7 @@ HRESULT DMUSIC_CreateReferenceClockImpl(LPCGUID riid, LPVOID* ret_iface, LPUNKNO
|
|||
|
||||
DMUSIC_LockModule();
|
||||
hr = IReferenceClockImpl_QueryInterface(&clock->IReferenceClock_iface, riid, ret_iface);
|
||||
IReferenceClockImpl_Release(&clock->IReferenceClock_iface);
|
||||
IReferenceClock_Release(&clock->IReferenceClock_iface);
|
||||
|
||||
return hr;
|
||||
}
|
||||
|
|
|
@ -430,7 +430,7 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicImpl(LPCGUID riid, LPVOID* ret_iface, LPU
|
|||
|
||||
DMUSIC_LockModule();
|
||||
ret = IDirectMusic8Impl_QueryInterface(&dmusic->IDirectMusic8_iface, riid, ret_iface);
|
||||
IDirectMusic8Impl_Release(&dmusic->IDirectMusic8_iface);
|
||||
IDirectMusic8_Release(&dmusic->IDirectMusic8_iface);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue