Diff for /qemu/os-win32.c between versions 1.1.1.4 and 1.1.1.5

version 1.1.1.4, 2018/04/24 19:17:28 version 1.1.1.5, 2018/04/24 19:34:43
Line 44  int setenv(const char *name, const char  Line 44  int setenv(const char *name, const char 
         char *string = g_malloc(length);          char *string = g_malloc(length);
         snprintf(string, length, "%s=%s", name, value);          snprintf(string, length, "%s=%s", name, value);
         result = putenv(string);          result = putenv(string);
   
           /* Windows takes a copy and does not continue to use our string.
            * Therefore it can be safely freed on this platform.  POSIX code
            * typically has to leak the string because according to the spec it
            * becomes part of the environment.
            */
           g_free(string);
     }      }
     return result;      return result;
 }  }
   
 static BOOL WINAPI qemu_ctrl_handler(DWORD type)  static BOOL WINAPI qemu_ctrl_handler(DWORD type)
 {  {
     exit(STATUS_CONTROL_C_EXIT);      qemu_system_shutdown_request();
       /* Windows 7 kills application when the function returns.
          Sleep here to give QEMU a try for closing.
          Sleep period is 10000ms because Windows kills the program
          after 10 seconds anyway. */
       Sleep(10000);
   
     return TRUE;      return TRUE;
 }  }
   
Line 144  int qemu_create_pidfile(const char *file Line 157  int qemu_create_pidfile(const char *file
     }      }
     return 0;      return 0;
 }  }
   
 int qemu_get_thread_id(void)  
 {  
     return GetCurrentThreadId();  
 }  

Removed from v.1.1.1.4  
changed lines
  Added in v.1.1.1.5


unix.superglobalmegacorp.com