dmusic: Check errors in IDirectMusic8Impl_Activate and remove FIXME.
This commit is contained in:
parent
5ae038b2e8
commit
4c0f0281bd
|
@ -285,17 +285,22 @@ static HRESULT WINAPI IDirectMusic8Impl_SetMasterClock(LPDIRECTMUSIC8 iface, REF
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI IDirectMusic8Impl_Activate(LPDIRECTMUSIC8 iface, BOOL fEnable)
|
static HRESULT WINAPI IDirectMusic8Impl_Activate(LPDIRECTMUSIC8 iface, BOOL enable)
|
||||||
{
|
{
|
||||||
IDirectMusic8Impl *This = impl_from_IDirectMusic8(iface);
|
IDirectMusic8Impl *This = impl_from_IDirectMusic8(iface);
|
||||||
int i;
|
int i;
|
||||||
|
HRESULT hr;
|
||||||
FIXME("(%p, %d): stub\n", This, fEnable);
|
|
||||||
for (i = 0; i < This->nrofports; i++) {
|
TRACE("(%p)->(%u)\n", This, enable);
|
||||||
IDirectMusicPort_Activate(This->ppPorts[i], fEnable);
|
|
||||||
}
|
for (i = 0; i < This->nrofports; i++)
|
||||||
|
{
|
||||||
return S_OK;
|
hr = IDirectMusicPort_Activate(This->ppPorts[i], enable);
|
||||||
|
if (FAILED(hr))
|
||||||
|
return hr;
|
||||||
|
}
|
||||||
|
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI IDirectMusic8Impl_GetDefaultPort(LPDIRECTMUSIC8 iface, LPGUID pguidPort)
|
static HRESULT WINAPI IDirectMusic8Impl_GetDefaultPort(LPDIRECTMUSIC8 iface, LPGUID pguidPort)
|
||||||
|
|
Loading…
Reference in New Issue