From 2c0118b2d7dd891605c54928c47cd6d9fa4fd3f6 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sun, 12 Jan 2014 22:04:41 -0700 Subject: [PATCH] Prevent debug break when not debugging --- obs/obs-app.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obs/obs-app.cpp b/obs/obs-app.cpp index 2abbbdc20..caf33e224 100644 --- a/obs/obs-app.cpp +++ b/obs/obs-app.cpp @@ -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);