diff options
Diffstat (limited to 'source/creator/creator_signals.c')
-rw-r--r-- | source/creator/creator_signals.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/creator/creator_signals.c b/source/creator/creator_signals.c index 5a5bc74d2d3..e8c6e9251bc 100644 --- a/source/creator/creator_signals.c +++ b/source/creator/creator_signals.c @@ -301,6 +301,12 @@ void main_signal_setup(void) # endif } +# ifdef WIN32 + /* Prevent any error mode dialogs from hanging the application. */ + SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOALIGNMENTFAULTEXCEPT | SEM_NOGPFAULTERRORBOX | + SEM_NOOPENFILEERRORBOX); +# endif + if (app_state.signal.use_abort_handler) { signal(SIGABRT, sig_handle_abort); } |