mirror of
https://github.com/reactos/wine.git
synced 2024-12-04 01:41:18 +00:00
msacm32: Don't write cbSize if the format is WAVE_FORMAT_PCM.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2aaeeb105e
commit
4e0c3707c3
@ -78,7 +78,8 @@ static BOOL CALLBACK MSACM_FillFormatTagsCB(HACMDRIVERID hadid,
|
||||
afd.pwfx = HeapAlloc(MSACM_hHeap, 0, paftd->cbFormatSize);
|
||||
if (!afd.pwfx) return FALSE;
|
||||
afd.pwfx->wFormatTag = paftd->dwFormatTag;
|
||||
afd.pwfx->cbSize = paftd->cbFormatSize;
|
||||
if (paftd->dwFormatTag != WAVE_FORMAT_PCM)
|
||||
afd.pwfx->cbSize = paftd->cbFormatSize - sizeof(WAVEFORMATEX);
|
||||
afd.cbwfx = paftd->cbFormatSize;
|
||||
|
||||
for (i = 0; i < paftd->cStandardFormats; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user