mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-16 07:10:40 +00:00
Fix case where UTF16stoUTF8s in cellL10n.cpp would always fail out if compiled with Visual Studio.
This commit is contained in:
parent
4db1f49aaf
commit
8302e6c001
@ -47,8 +47,10 @@ int UTF16stoUTF8s(mem16_ptr_t utf16, mem64_t utf16_len, mem8_ptr_t utf8, mem64_t
|
|||||||
std::string str = convert.to_bytes(wstr);
|
std::string str = convert.to_bytes(wstr);
|
||||||
|
|
||||||
if (!utf8.IsGood() || utf8_len.GetValue() < str.size())
|
if (!utf8.IsGood() || utf8_len.GetValue() < str.size())
|
||||||
|
{
|
||||||
utf8_len = str.size();
|
utf8_len = str.size();
|
||||||
return DSTExhausted;
|
return DSTExhausted;
|
||||||
|
}
|
||||||
|
|
||||||
utf8_len = str.size();
|
utf8_len = str.size();
|
||||||
Memory.WriteString(utf8, str.c_str());
|
Memory.WriteString(utf8, str.c_str());
|
||||||
|
Loading…
Reference in New Issue
Block a user