dmusic: Call interface methods properly.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Zebediah Figura 2018-03-29 23:04:45 -05:00 committed by Alexandre Julliard
parent 5cb0ac15f6
commit 264267fc2f
1 changed files with 2 additions and 2 deletions

View File

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