From fe996c42e69c3a0b6ce3e1ff7cdb2bfc61c3daa5 Mon Sep 17 00:00:00 2001 From: Alexander Babikov Date: Fri, 18 Jun 2021 18:09:46 +0500 Subject: [PATCH] Fix UTF-8 to UTF-16 conversion of displayed paths to MO/ZIP images --- src/win/win_media_menu.c | 2 +- src/win/win_stbar.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win/win_media_menu.c b/src/win/win_media_menu.c index 4c925e8b5..1908f1f7c 100644 --- a/src/win/win_media_menu.c +++ b/src/win/win_media_menu.c @@ -140,7 +140,7 @@ media_menu_set_name_zip(int drive) } else { mbstoc16s(fn, zip_drives[drive].image_path, sizeof_w(fn)); _swprintf(name, plat_get_string(IDS_2054), - type, drive+1, temp, zip_drives[drive].image_path); + type, drive+1, temp, fn); } mii.cbSize = sizeof(mii); diff --git a/src/win/win_stbar.c b/src/win/win_stbar.c index 4cbbdfd7e..505c4cb7b 100644 --- a/src/win/win_stbar.c +++ b/src/win/win_stbar.c @@ -292,7 +292,7 @@ StatusBarCreateMOTip(int part) } else { mbstoc16s(fn, mo_drives[drive].image_path, sizeof_w(fn)); _swprintf(tempTip, plat_get_string(IDS_2115), - drive+1, szText, mo_drives[drive].image_path); + drive+1, szText, fn); } if (sbTips[part] != NULL) {