diff --git a/dlls/msacm/format.c b/dlls/msacm/format.c index 7b06dfc9390..b6825689140 100644 --- a/dlls/msacm/format.c +++ b/dlls/msacm/format.c @@ -550,7 +550,7 @@ MMRESULT WINAPI acmFormatSuggest(HACMDRIVER had, PWAVEFORMATEX pwfxSrc, adfg.fdwSuggest = fdwSuggest; adfg.pwfxSrc = pwfxSrc; adfg.cbwfxSrc = (pwfxSrc->wFormatTag == WAVE_FORMAT_PCM) ? - sizeof(WAVEFORMATEX) : pwfxSrc->cbSize; + sizeof(WAVEFORMATEX) : (sizeof(WAVEFORMATEX) + pwfxSrc->cbSize); adfg.pwfxDst = pwfxDst; adfg.cbwfxDst = cbwfxDst;