From 64f1948dd9466d57ed5bcf649f40a5586b0c5b1a Mon Sep 17 00:00:00 2001 From: RadWolfie Date: Wed, 17 Jul 2019 16:21:29 -0500 Subject: [PATCH] hotfix GenerateMixBinDefault check for lpwfxFormat is nullptr --- src/core/hle/DSOUND/DirectSound/DirectSoundInline.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hle/DSOUND/DirectSound/DirectSoundInline.hpp b/src/core/hle/DSOUND/DirectSound/DirectSoundInline.hpp index cf19191ca..2236bdef5 100644 --- a/src/core/hle/DSOUND/DirectSound/DirectSoundInline.hpp +++ b/src/core/hle/DSOUND/DirectSound/DirectSoundInline.hpp @@ -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;