Cmd line: -m and -no-mb: fix crash

This commit is contained in:
tomcw
2019-11-03 14:23:47 +00:00
parent 5792107dce
commit d92eca5068
2 changed files with 9 additions and 0 deletions
+1
View File
@@ -235,6 +235,7 @@ bool DSZeroVoiceBuffer(PVOICE Voice, char* pszDevName, DWORD dwBufferSize)
DWORD dwDSLockedBufferSize = 0; // Size of the locked DirectSound buffer
SHORT* pDSLockedBuffer;
_ASSERT(Voice->lpDSBvoice);
HRESULT hr = Voice->lpDSBvoice->Stop();
if(FAILED(hr))
{