msadp32: ADPCM_FormatSuggest compare source format tag with destination format tag.
This commit is contained in:
parent
d6ae9f8800
commit
7fb434838c
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue