diff options
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/alError.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/OpenAL32/alError.c b/OpenAL32/alError.c index 8b95423b..f1c157f5 100644 --- a/OpenAL32/alError.c +++ b/OpenAL32/alError.c @@ -48,12 +48,9 @@ ALvoid alSetError(ALCcontext *Context, ALenum errorCode) if(TrapALError) { #ifdef _WIN32 - /* Safely catch a breakpoint exception that wasn't caught by a debugger */ - __try { + /* DebugBreak will cause an exception if there is no debugger */ + if(IsDebuggerPresent()) DebugBreak(); - } __except((GetExceptionCode()==EXCEPTION_BREAKPOINT) ? - EXCEPTION_EXECUTE_HANDLER : EXCEPTION_CONTINUE_SEARCH) { - } #elif defined(SIGTRAP) kill(getpid(), SIGTRAP); #endif |