Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Remove unnecessary debugger detection logic again from Win32 SDL_LogO…
Browse files Browse the repository at this point in the history
…utput
  • Loading branch information
ferzkopp committed Jun 6, 2013
1 parent a9d9c44 commit effc779
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/SDL_log.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit effc779

Please sign in to comment.