src/main/windows/SDL_windows_main.c
changeset 9246 a761913e5e91
parent 9016 648dbad92045
child 9365 2e624f24d1af
--- a/src/main/windows/SDL_windows_main.c	Fri Nov 28 04:42:46 2014 -0800
+++ b/src/main/windows/SDL_windows_main.c	Fri Nov 28 04:51:33 2014 -0800
@@ -134,7 +134,7 @@
     /* Grab the command line */
     TCHAR *text = GetCommandLine();
 #if UNICODE
-    cmdline = SDL_iconv_string("UTF-8", "UCS-2-INTERNAL", (char *)(text), (SDL_wcslen(text)+1)*sizeof(WCHAR));
+    cmdline = WIN_StringToUTF8(text);
 #else
     cmdline = SDL_strdup(text);
 #endif