From 8cb421b26d4ffb6742e5270d6b84a8ac0bc57d32 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Mon, 4 Jan 2021 10:20:10 +0300 Subject: [PATCH] SDL_windows_main.c: use new WIN_StringToUTF8W macro --- src/main/windows/SDL_windows_main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/windows/SDL_windows_main.c b/src/main/windows/SDL_windows_main.c index f8b104186..6333f2c3a 100644 --- a/src/main/windows/SDL_windows_main.c +++ b/src/main/windows/SDL_windows_main.c @@ -19,8 +19,6 @@ # undef main #endif /* main */ -#define WIN_WStringToUTF8(S) SDL_iconv_string("UTF-8", "UTF-16LE", (char *)(S), (SDL_wcslen(S)+1)*sizeof(WCHAR)) - /* Pop up an out of memory message, returns to Windows */ static BOOL OutOfMemory(void) @@ -57,7 +55,7 @@ main_getcmdline(void) return OutOfMemory(); } for (i = 0; i < argc; ++i) { - argv[i] = WIN_WStringToUTF8(argvw[i]); + argv[i] = WIN_StringToUTF8W(argvw[i]); if (!argv[i]) { return OutOfMemory(); }