Fix improper WAVEFORMATEX size calculation for non PCM formats.

This commit is contained in:
Robert Reif 2004-01-16 23:03:08 +00:00 committed by Alexandre Julliard
parent a38979a3cd
commit 2ca8753e0e
1 changed files with 1 additions and 1 deletions

View File

@ -550,7 +550,7 @@ MMRESULT WINAPI acmFormatSuggest(HACMDRIVER had, PWAVEFORMATEX pwfxSrc,
adfg.fdwSuggest = fdwSuggest; adfg.fdwSuggest = fdwSuggest;
adfg.pwfxSrc = pwfxSrc; adfg.pwfxSrc = pwfxSrc;
adfg.cbwfxSrc = (pwfxSrc->wFormatTag == WAVE_FORMAT_PCM) ? adfg.cbwfxSrc = (pwfxSrc->wFormatTag == WAVE_FORMAT_PCM) ?
sizeof(WAVEFORMATEX) : pwfxSrc->cbSize; sizeof(WAVEFORMATEX) : (sizeof(WAVEFORMATEX) + pwfxSrc->cbSize);
adfg.pwfxDst = pwfxDst; adfg.pwfxDst = pwfxDst;
adfg.cbwfxDst = cbwfxDst; adfg.cbwfxDst = cbwfxDst;