Module: wine Branch: master Commit: da5c70ce8de0c10319fe0406e707e415d05788e7 URL: https://source.winehq.org/git/wine.git/?a=commit;h=da5c70ce8de0c10319fe0406e...
Author: Michael Stefaniuc mstefani@winehq.org Date: Tue Feb 8 00:51:57 2022 +0100
dmime: Fix the size of the DMUS_PORTPARAMS.
Signed-off-by: Michael Stefaniuc mstefani@winehq.org Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/dmime/performance.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/dmime/performance.c b/dlls/dmime/performance.c index 8b38e12eb28..554518c5d5b 100644 --- a/dlls/dmime/performance.c +++ b/dlls/dmime/performance.c @@ -643,7 +643,6 @@ static HRESULT perf_dmport_create(IDirectMusicPerformance8Impl *perf, DMUS_PORTP if (FAILED(hr = IDirectMusic8_GetDefaultPort(perf->dmusic, &guid))) return hr;
- params->dwSize = sizeof(params); params->dwValidParams |= DMUS_PORTPARAMS_SHARE; params->fShare = TRUE;
@@ -671,6 +670,7 @@ static HRESULT WINAPI IDirectMusicPerformance8Impl_AddPort(IDirectMusicPerforman
if (!port) { DMUS_PORTPARAMS params = { + .dwSize = sizeof(params), .dwValidParams = DMUS_PORTPARAMS_CHANNELGROUPS, .dwChannelGroups = 1 }; @@ -1148,6 +1148,7 @@ static HRESULT WINAPI IDirectMusicPerformance8Impl_CreateStandardAudioPath(IDire }
/* Create a port */ + params.dwSize = sizeof(params); params.dwValidParams = DMUS_PORTPARAMS_CHANNELGROUPS | DMUS_PORTPARAMS_AUDIOCHANNELS; params.dwChannelGroups = (pchannel_count + 15) / 16; params.dwAudioChannels = format.nChannels;