From 47000e8aebb2e9355d0dc72197e95681768f2c4c Mon Sep 17 00:00:00 2001 From: tarui Date: Thu, 27 May 2010 15:53:42 +0000 Subject: * error.c (rb_bug): suppress the error report dialog if report_bug() is finished successfly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- error.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'error.c') diff --git a/error.c b/error.c index addf8b63f2..5afabce482 100644 --- a/error.c +++ b/error.c @@ -246,6 +246,10 @@ rb_bug(const char *fmt, ...) report_bug(rb_sourcefile(), rb_sourceline(), fmt, args); va_end(args); +#if defined(_WIN32) && defined(_MSC_VER) && _MSC_VER >= 1400 + _set_abort_behavior( 0, _CALL_REPORTFAULT); +#endif + abort(); } -- cgit v1.2.3