msadp32: ADPCM_FormatSuggest compare source format tag with destination format tag.

This commit is contained in:
Stefano Guidoni 2009-02-09 22:09:17 +01:00 committed by Alexandre Julliard
parent d6ae9f8800
commit 7fb434838c
1 changed files with 1 additions and 0 deletions

View File

@ -472,6 +472,7 @@ static LRESULT ADPCM_FormatSuggest(PACMDRVFORMATSUGGEST adfs)
/* some tests ... */
if (adfs->cbwfxSrc < sizeof(PCMWAVEFORMAT) ||
adfs->cbwfxDst < sizeof(PCMWAVEFORMAT) ||
adfs->pwfxSrc->wFormatTag == adfs->pwfxDst->wFormatTag ||
ADPCM_GetFormatIndex(adfs->pwfxSrc) == 0xFFFFFFFF) return ACMERR_NOTPOSSIBLE;
/* FIXME: should do those tests against the real size (according to format tag */