From d96417408a024128b8cb0bf6048d4a325cbbf23b Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Tue, 21 Nov 2006 20:40:34 -0600 Subject: [PATCH] Really do not disable error messages when MOO_DEBUG is used --- moo/mooutils/mooutils-misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moo/mooutils/mooutils-misc.c b/moo/mooutils/mooutils-misc.c index 4cf87281..d4c5b743 100644 --- a/moo/mooutils/mooutils-misc.c +++ b/moo/mooutils/mooutils-misc.c @@ -1686,7 +1686,7 @@ saved_win32_error_mode; void _moo_disable_win32_error_message (void) { -#if defined(__WIN32__) && !defined(MOO_DEBUG) +#if defined(__WIN32__) if (!_moo_debug_enabled ()) saved_win32_error_mode = SetErrorMode (SEM_NOOPENFILEERRORBOX | SEM_FAILCRITICALERRORS); #endif @@ -1695,7 +1695,7 @@ _moo_disable_win32_error_message (void) void _moo_enable_win32_error_message (void) { -#if defined(__WIN32__) && !defined(MOO_DEBUG) +#if defined(__WIN32__) if (!_moo_debug_enabled ()) SetErrorMode (saved_win32_error_mode); #endif