hotfix GenerateMixBinDefault check for lpwfxFormat is nullptr

This commit is contained in:
RadWolfie 2019-07-17 16:21:29 -05:00
parent f9a3fde976
commit 64f1948dd9
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ inline void GenerateMixBinDefault(
}
else {
// 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;
for (i = 0; i < counter; i++) {
xb_mixbinArray[i].dwMixBin = i;