src/SDL_log.c
changeset 10686 964e600644f4
parent 10637 5e3ac176d5a8
child 10737 3406a0f8b041
equal deleted inserted replaced
10685:bfddf6a4bcad 10686:964e600644f4
   333         if (consoleAttached == 0) {
   333         if (consoleAttached == 0) {
   334             attachResult = AttachConsole(ATTACH_PARENT_PROCESS);
   334             attachResult = AttachConsole(ATTACH_PARENT_PROCESS);
   335             if (!attachResult) {
   335             if (!attachResult) {
   336                     attachError = GetLastError();
   336                     attachError = GetLastError();
   337                     if (attachError == ERROR_INVALID_HANDLE) {
   337                     if (attachError == ERROR_INVALID_HANDLE) {
   338                         OutputDebugString(TEXT("Parent process has no console\r\n"));
   338                         /* This is expected when running from Visual Studio */
       
   339                         /*OutputDebugString(TEXT("Parent process has no console\r\n"));*/
   339                         consoleAttached = -1;
   340                         consoleAttached = -1;
   340                     } else if (attachError == ERROR_GEN_FAILURE) {
   341                     } else if (attachError == ERROR_GEN_FAILURE) {
   341                          OutputDebugString(TEXT("Could not attach to console of parent process\r\n"));
   342                          OutputDebugString(TEXT("Could not attach to console of parent process\r\n"));
   342                          consoleAttached = -1;
   343                          consoleAttached = -1;
   343                     } else if (attachError == ERROR_ACCESS_DENIED) {  
   344                     } else if (attachError == ERROR_ACCESS_DENIED) {