diff --git a/src/CxbxKrnl/Emu.cpp b/src/CxbxKrnl/Emu.cpp index 15351f772..44c388291 100644 --- a/src/CxbxKrnl/Emu.cpp +++ b/src/CxbxKrnl/Emu.cpp @@ -292,10 +292,12 @@ bool lleTryHandleException(EXCEPTION_POINTERS *e) return true; } - genericException(e); - - // Unhandled exception : + genericException(e); + + // We do not need EmuException to handle it again. bOverrideException = true; + + // Unhandled exception : return false; } @@ -312,7 +314,7 @@ LONG NTAPI lleException(EXCEPTION_POINTERS *e) bool EmuTryHandleException(EXCEPTION_POINTERS *e) { - // Check if lle exception is already called here first before emu exception. + // Check if lle exception is already called first before emu exception. if (bOverrideException) { return false; }