Skip to content

Commit

Permalink
disable critical-error-handler
Browse files Browse the repository at this point in the history
* win32/win32.c (rb_w32_sysinit): disable critical-error-handler
  message box even on mswin, regardless of runtime DLL version.
  [ruby-dev:49988] [Bug #13254]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Feb 28, 2017
1 parent 7def092 commit 3d718d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions win32/win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -837,9 +837,8 @@ rb_w32_sysinit(int *argc, char ***argv)
_set_invalid_parameter_handler(invalid_parameter);
_RTC_SetErrorFunc(rtc_error_handler);
set_pioinfo_extra();
#else
SetErrorMode(SEM_FAILCRITICALERRORS|SEM_NOGPFAULTERRORBOX);
#endif
SetErrorMode(SEM_FAILCRITICALERRORS|SEM_NOGPFAULTERRORBOX);

get_version();

Expand Down

0 comments on commit 3d718d2

Please sign in to comment.