From effc779177bdb4118d6b363d4eb972bddce4842c Mon Sep 17 00:00:00 2001 From: Andreas Schiffler Date: Thu, 6 Jun 2013 07:25:41 -0700 Subject: [PATCH] Remove unnecessary debugger detection logic again from Win32 SDL_LogOutput --- src/SDL_log.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/SDL_log.c b/src/SDL_log.c index 272943035..5a51fcf34 100644 --- a/src/SDL_log.c +++ b/src/SDL_log.c @@ -309,7 +309,6 @@ SDL_LogOutput(void *userdata, int category, SDL_LogPriority priority, char *output; size_t length; LPTSTR tstr; - BOOL pbRemoteDebuggerPresent; BOOL attachResult; DWORD attachError; unsigned long charsWritten; @@ -347,11 +346,8 @@ SDL_LogOutput(void *userdata, int category, SDL_LogPriority priority, 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) {