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>
This commit is contained in:
parent
5cb0ac15f6
commit
264267fc2f
|
@ -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
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue