Browse Source

Prevent debug break when not debugging

jp9000 11 years ago
parent
commit
2c0118b2d7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      obs/obs-app.cpp

+ 1 - 1
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);