From 2ca8753e0e11016ceb3ed81337da531dc3c55f38 Mon Sep 17 00:00:00 2001 From: Robert Reif Date: Fri, 16 Jan 2004 23:03:08 +0000 Subject: [PATCH] Fix improper WAVEFORMATEX size calculation for non PCM formats. --- dlls/msacm/format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;