equal
deleted
inserted
replaced
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(); |