Prevent debug break when not debugging

This commit is contained in:
jp9000
2014-01-12 22:04:41 -07:00
parent 02a101d1e8
commit 2c0118b2d7

View File

@@ -46,7 +46,7 @@ static void do_log(enum log_type type, const char *msg, va_list args)
OutputDebugStringA(bla);
OutputDebugStringA("\n");
if (type >= LOG_WARNING)
if (type >= LOG_WARNING && IsDebuggerPresent())
__debugbreak();
#else
vprintf(msg, args);