Remove unnecessary debugger detection logic again from Win32 SDL_LogOutput
authorAndreas Schiffler <aschiffler@ferzkopp.net>
Thu, 06 Jun 2013 07:25:41 -0700
changeset 7292 fdf42e4cdcec
parent 7290 36c04a8c6545
child 7293 341d22fe9044
Remove unnecessary debugger detection logic again from Win32 SDL_LogOutput
src/SDL_log.c
--- a/src/SDL_log.c	Wed Jun 05 23:11:20 2013 -0700
+++ b/src/SDL_log.c	Thu Jun 06 07:25:41 2013 -0700
@@ -309,7 +309,6 @@
         char *output;
         size_t length;
         LPTSTR tstr;
-        BOOL pbRemoteDebuggerPresent;        
         BOOL attachResult;
         DWORD attachError;
         unsigned long charsWritten; 
@@ -347,11 +346,8 @@
         SDL_snprintf(output, length, "%s: %s\n", SDL_priority_prefixes[priority], message);
         tstr = WIN_UTF8ToString(output);
         
-        /* Debugger output, if attached. Check each time since debugger can be attached at runtime. */
-        CheckRemoteDebuggerPresent(GetCurrentProcess(), &pbRemoteDebuggerPresent);
-        if (pbRemoteDebuggerPresent || IsDebuggerPresent()) {
-            OutputDebugString(tstr);
-        }
+        /* Output to debugger */
+        OutputDebugString(tstr);
        
         /* Screen output to stderr, if console was attached. */
         if (consoleAttached == 1) {