Merge pull request #1671 from RadWolfie/hotfix-GenerateMixBinDefault-func

HOTFIX: GenerateMixBinDefault check for lpwfxFormat is null pointer
This commit is contained in:
RadWolfie 2019-07-17 17:02:22 -05:00 committed by GitHub
commit 1edbc208e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ inline void GenerateMixBinDefault(
} }
else { else {
// If format is PCM/XADPCM, then use stereo mixbin as default. // If format is PCM/XADPCM, then use stereo mixbin as default.
if (lpwfxFormat->wFormatTag != WAVE_FORMAT_EXTENSIBLE) { if (lpwfxFormat == xbnullptr || lpwfxFormat->wFormatTag != WAVE_FORMAT_EXTENSIBLE) {
counter = 2; counter = 2;
for (i = 0; i < counter; i++) { for (i = 0; i < counter; i++) {
xb_mixbinArray[i].dwMixBin = i; xb_mixbinArray[i].dwMixBin = i;