Make the shut-down-bass hack a little less ugly.

This commit is contained in:
Glenn Maynard
2002-09-03 05:55:12 +00:00
parent 1f2e6f7338
commit a78bcf7c7f
+6 -4
View File
@@ -1,3 +1,5 @@
#include "stdafx.h"
// from VirtualDub // from VirtualDub
// Copyright (C) 1998-2001 Avery Lee // Copyright (C) 1998-2001 Avery Lee
// //
@@ -265,7 +267,8 @@ static void DoEraseEmergencyDump()
DeleteFile(szEmergencyDumpName); DeleteFile(szEmergencyDumpName);
} }
#include "bass/bass.h" //#include "bass/bass.h"
#include "RageSound.h"
long __stdcall CrashHandler(EXCEPTION_POINTERS *pExc) { long __stdcall CrashHandler(EXCEPTION_POINTERS *pExc) {
///////////////////////// /////////////////////////
// //
@@ -369,9 +372,8 @@ long __stdcall CrashHandler(EXCEPTION_POINTERS *pExc) {
* crashing ourselves. Now, it's far from safe to call these functions * crashing ourselves. Now, it's far from safe to call these functions
* after a crash, but if we don't it'll crash anyway, so we have * after a crash, but if we don't it'll crash anyway, so we have
* nothing to lose. */ * nothing to lose. */
delete SOUND;
BASS_Stop(); SOUND = NULL;
BASS_Free();
/* We've made it. Delete the emergency dump. */ /* We've made it. Delete the emergency dump. */
DoEraseEmergencyDump(); DoEraseEmergencyDump();