- 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:
parent
00efacbe13
commit
7027c2780d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user