- if panic is non-fatal, we must return before calling bx_atexit.

This caused trouble when BX_PANIC_IS_FATAL was 0, and a panic occurred.
This commit is contained in:
Bryce Denney 2001-05-02 02:39:23 +00:00
parent 00efacbe13
commit 7027c2780d

View File

@ -310,12 +310,12 @@ bx_panic(char *fmt, ...)
va_end(ap);
}
bx_atexit();
#if !BX_PANIC_IS_FATAL
return;
#endif
bx_atexit();
#if !BX_DEBUGGER
exit(1);
#else