SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit d9b8e829a5908bfd30166ef352d6dc162b807810 parent 856a2b0ebe00524ff29c78d7ac5c9c293dc1e137 Author: Lior Halphon <LIJI32@gmail.com> Date: Fri, 8 Jul 2022 14:17:28 +0300 Fix crash on Windows 8.x Diffstat:
| M | SDL/audio/xaudio2_7.c | 5 | ++--- |
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/SDL/audio/xaudio2_7.c b/SDL/audio/xaudio2_7.c @@ -38,7 +38,7 @@ static inline HRESULT XAudio2Create(IXAudio2 **ppXAudio2, if (SUCCEEDED(hr)) { *ppXAudio2 = pXAudio2; } - else { + else if (pXAudio2) { pXAudio2->lpVtbl->Release(pXAudio2); } return hr; @@ -132,4 +132,4 @@ static bool _audio_init(void) return true; } -GB_AUDIO_DRIVER(XAudio2_7); - +GB_AUDIO_DRIVER(XAudio2_7);
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.