mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
Imgtool: Vas Feedback: Changed another charconverter access (nw)
This commit is contained in:
parent
c04cc60702
commit
6b76e4ad57
@ -1114,10 +1114,10 @@ imgtoolerr_t imgtool::partition::cannonicalize_path(uint32_t flags, const char *
|
|||||||
|
|
||||||
// normalize the path into the native character set
|
// normalize the path into the native character set
|
||||||
std::string converted_path;
|
std::string converted_path;
|
||||||
imgtool::charconverter *charconverter = (imgtool::charconverter *) get_info_ptr(IMGTOOLINFO_PTR_CHARCONVERTER);
|
imgtool::charconverter * const converter = reinterpret_cast<imgtool::charconverter * const>(get_info_ptr(IMGTOOLINFO_PTR_CHARCONVERTER));
|
||||||
if (charconverter)
|
if (converter)
|
||||||
{
|
{
|
||||||
converted_path = charconverter->from_utf8(path);
|
converted_path = converter->from_utf8(path);
|
||||||
path = converted_path.c_str();
|
path = converted_path.c_str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user