From 88af328437e9f50b696b53fec18c20790e482d83 Mon Sep 17 00:00:00 2001 From: skidau Date: Mon, 8 Mar 2010 08:16:08 +0000 Subject: [PATCH] Merged r5172 to stable branch. (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/branches/stable@5173 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 {