Commit 264267fc authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

dmusic: Call interface methods properly.

parent 5cb0ac15
...@@ -510,7 +510,7 @@ static HRESULT WINAPI synth_dmport_SetDirectSound(IDirectMusicPort *iface, IDire ...@@ -510,7 +510,7 @@ static HRESULT WINAPI synth_dmport_SetDirectSound(IDirectMusicPort *iface, IDire
This->parent->dsound = NULL; This->parent->dsound = NULL;
} }
if (This->dsbuffer) if (This->dsbuffer)
IDirectSound_Release(This->dsbuffer); IDirectSoundBuffer_Release(This->dsbuffer);
This->dsound = dsound; This->dsound = dsound;
This->dsbuffer = dsbuffer; This->dsbuffer = dsbuffer;
...@@ -518,7 +518,7 @@ static HRESULT WINAPI synth_dmport_SetDirectSound(IDirectMusicPort *iface, IDire ...@@ -518,7 +518,7 @@ static HRESULT WINAPI synth_dmport_SetDirectSound(IDirectMusicPort *iface, IDire
if (This->dsound) if (This->dsound)
IDirectSound_AddRef(This->dsound); IDirectSound_AddRef(This->dsound);
if (This->dsbuffer) if (This->dsbuffer)
IDirectSound_AddRef(This->dsbuffer); IDirectSoundBuffer_AddRef(This->dsbuffer);
return S_OK; return S_OK;
} }
......
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