From e0aee93dc660cf6ec73d54acb95bd0341aa441fc Mon Sep 17 00:00:00 2001 From: Vincent Pelletier Date: Wed, 4 Feb 2009 21:11:05 +0100 Subject: [PATCH] msadp32.acm: Make destination aligned on destination block size (copy/paste error). --- dlls/msadp32.acm/msadp32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/msadp32.acm/msadp32.c b/dlls/msadp32.acm/msadp32.c index f3454508ade..c3205e96039 100644 --- a/dlls/msadp32.acm/msadp32.c +++ b/dlls/msadp32.acm/msadp32.c @@ -660,7 +660,7 @@ static LRESULT ADPCM_StreamSize(const ACMDRVSTREAMINSTANCE *adsi, PACMDRVSTREAMS if (adss->cbSrcLength % (adsi->pwfxSrc->nBlockAlign * wSamplesPerBlock)) /* Round block count up. */ nblocks++; - adss->cbDstLength = nblocks * adsi->pwfxSrc->nBlockAlign; + adss->cbDstLength = nblocks * adsi->pwfxDst->nBlockAlign; } else if (adsi->pwfxSrc->wFormatTag == WAVE_FORMAT_ADPCM && adsi->pwfxDst->wFormatTag == WAVE_FORMAT_PCM) @@ -672,7 +672,7 @@ static LRESULT ADPCM_StreamSize(const ACMDRVSTREAMINSTANCE *adsi, PACMDRVSTREAMS if (adss->cbSrcLength % adsi->pwfxSrc->nBlockAlign) /* Round block count up. */ nblocks++; - adss->cbDstLength = nblocks * adsi->pwfxSrc->nBlockAlign * wSamplesPerBlock; + adss->cbDstLength = nblocks * adsi->pwfxDst->nBlockAlign * wSamplesPerBlock; } else {