fixed the string encoding issue on macOS (#277)

This commit is contained in:
Tillsunset 2022-09-20 07:50:34 -05:00 committed by GitHub
parent 6fa0ac6eaa
commit 7864d76eca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 8 deletions

View file

@ -300,14 +300,14 @@ void MemorySearcherTool::Load()
bool found = false;
for (const auto& entry : kDataTypeNames)
{
if (boost::iequals(entry, *option_type))
if (boost::iequals(entry.ToStdString(), *option_type))
{
found = true;
break;
}
}
if (!found && !boost::iequals(kDatatypeString, *option_type))
if (!found && !boost::iequals(kDatatypeString.ToStdString(), *option_type))
continue;
wxVector<wxVariant> data;