mirror of
https://github.com/libretro/RetroArch
synced 2025-02-22 12:40:09 +00:00
Use wcstombs by default instead of relying on preprocessor detection
of Windows version
This commit is contained in:
parent
76b7235dc5
commit
d79fe15e9a
@ -614,12 +614,7 @@ LRESULT win32_menu_loop(HWND owner, WPARAM wparam)
|
|||||||
* This is needed for proper multi-byte string display until Unicode is fully supported.
|
* This is needed for proper multi-byte string display until Unicode is fully supported.
|
||||||
*/
|
*/
|
||||||
MultiByteToWideChar(CP_UTF8, 0, title, -1, title_wide, sizeof(title_wide) / sizeof(title_wide[0]));
|
MultiByteToWideChar(CP_UTF8, 0, title, -1, title_wide, sizeof(title_wide) / sizeof(title_wide[0]));
|
||||||
#if !defined(_MSC_VER) && (_WIN32_WINNT > _WIN32_WINNT_WINXP)
|
|
||||||
/* MinGW does not define wcstombs_s for XP, but MSVC does */
|
|
||||||
wcstombs_s(&converted, title_cp, sizeof(title_cp), title_wide, sizeof(title_cp) - 1);
|
|
||||||
#else
|
|
||||||
wcstombs(title_cp, title_wide, sizeof(title_cp) - 1);
|
wcstombs(title_cp, title_wide, sizeof(title_cp) - 1);
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!win32_browser(owner, win32_file,
|
if (!win32_browser(owner, win32_file,
|
||||||
extensions, title_cp, initial_dir))
|
extensions, title_cp, initial_dir))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user