From 76ad8db4459248d10785c82f7a877434664a0ff3 Mon Sep 17 00:00:00 2001 From: skidau Date: Mon, 8 Mar 2010 08:03:42 +0000 Subject: [PATCH] Added a null check when stopping the DSPHLE plugin with the DSound back-end. Fixes the DSPHLE crash on stop. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5172 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/AudioCommon/Src/DSoundStream.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/AudioCommon/Src/DSoundStream.cpp b/Source/Core/AudioCommon/Src/DSoundStream.cpp index 3d4c868cdb..0df1fbe753 100644 --- a/Source/Core/AudioCommon/Src/DSoundStream.cpp +++ b/Source/Core/AudioCommon/Src/DSoundStream.cpp @@ -162,7 +162,8 @@ void DSound::Clear(bool mute) if (m_muted) { - dsBuffer->Stop(); + if (dsBuffer != NULL) + dsBuffer->Stop(); } else {