Remove unnecessary debugger detection logic again from Win32 SDL_LogOutput
This commit is contained in:
parent
7fe9747caf
commit
a8d039c4fe
1 changed files with 2 additions and 6 deletions
|
@ -309,7 +309,6 @@ SDL_LogOutput(void *userdata, int category, SDL_LogPriority priority,
|
||||||
char *output;
|
char *output;
|
||||||
size_t length;
|
size_t length;
|
||||||
LPTSTR tstr;
|
LPTSTR tstr;
|
||||||
BOOL pbRemoteDebuggerPresent;
|
|
||||||
BOOL attachResult;
|
BOOL attachResult;
|
||||||
DWORD attachError;
|
DWORD attachError;
|
||||||
unsigned long charsWritten;
|
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);
|
SDL_snprintf(output, length, "%s: %s\n", SDL_priority_prefixes[priority], message);
|
||||||
tstr = WIN_UTF8ToString(output);
|
tstr = WIN_UTF8ToString(output);
|
||||||
|
|
||||||
/* Debugger output, if attached. Check each time since debugger can be attached at runtime. */
|
/* Output to debugger */
|
||||||
CheckRemoteDebuggerPresent(GetCurrentProcess(), &pbRemoteDebuggerPresent);
|
|
||||||
if (pbRemoteDebuggerPresent || IsDebuggerPresent()) {
|
|
||||||
OutputDebugString(tstr);
|
OutputDebugString(tstr);
|
||||||
}
|
|
||||||
|
|
||||||
/* Screen output to stderr, if console was attached. */
|
/* Screen output to stderr, if console was attached. */
|
||||||
if (consoleAttached == 1) {
|
if (consoleAttached == 1) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue