Fix UTF-8 to UTF-16 conversion of displayed paths to MO/ZIP images

This commit is contained in:
Alexander Babikov
2021-06-18 18:09:46 +05:00
parent e6add409ec
commit fe996c42e6
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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) {