SPU2-X: Minor bugfix to suspend/shutdown code which caused SPU2-X to hang in very rare occasions.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1999 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
Jake.Stine 2009-10-12 19:55:54 +00:00
parent 7533e00816
commit 8b0cbe445a
1 changed files with 5 additions and 1 deletions

View File

@ -209,7 +209,11 @@ private:
EnterCriticalSection( &cs ); EnterCriticalSection( &cs );
// All of these checks are necessary because XAudio2 is wonky shizat. // All of these checks are necessary because XAudio2 is wonky shizat.
if( pSourceVoice == NULL || context == NULL ) return; if( pSourceVoice == NULL || context == NULL )
{
LeaveCriticalSection( &cs );
return;
}
T* qb = (T*)context; T* qb = (T*)context;