mirror of
https://github.com/reactos/wine.git
synced 2025-02-08 05:08:16 +00:00
Fix improper WAVEFORMATEX size calculation for non PCM formats.
This commit is contained in:
parent
a38979a3cd
commit
2ca8753e0e
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user