Commit 91491824aeb63fba4af521850220aa59d5f1fa6c

Sam Lantinga 2016-12-07T11:02:02

Removed unneeded warning when running from Visual Studio

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/SDL_log.c b/src/SDL_log.c
index 82a96ce..2739e94 100644
--- a/src/SDL_log.c
+++ b/src/SDL_log.c
@@ -335,7 +335,8 @@ SDL_LogOutput(void *userdata, int category, SDL_LogPriority priority,
             if (!attachResult) {
                     attachError = GetLastError();
                     if (attachError == ERROR_INVALID_HANDLE) {
-                        OutputDebugString(TEXT("Parent process has no console\r\n"));
+                        /* This is expected when running from Visual Studio */
+                        /*OutputDebugString(TEXT("Parent process has no console\r\n"));*/
                         consoleAttached = -1;
                     } else if (attachError == ERROR_GEN_FAILURE) {
                          OutputDebugString(TEXT("Could not attach to console of parent process\r\n"));