src/main/windows/SDL_windows_main.c
changeset 9246 a761913e5e91
parent 9016 648dbad92045
child 9365 2e624f24d1af
equal deleted inserted replaced
9245:104f3bcfbf45 9246:a761913e5e91
   132     char *cmdline;
   132     char *cmdline;
   133 
   133 
   134     /* Grab the command line */
   134     /* Grab the command line */
   135     TCHAR *text = GetCommandLine();
   135     TCHAR *text = GetCommandLine();
   136 #if UNICODE
   136 #if UNICODE
   137     cmdline = SDL_iconv_string("UTF-8", "UCS-2-INTERNAL", (char *)(text), (SDL_wcslen(text)+1)*sizeof(WCHAR));
   137     cmdline = WIN_StringToUTF8(text);
   138 #else
   138 #else
   139     cmdline = SDL_strdup(text);
   139     cmdline = SDL_strdup(text);
   140 #endif
   140 #endif
   141     if (cmdline == NULL) {
   141     if (cmdline == NULL) {
   142         return OutOfMemory();
   142         return OutOfMemory();