From 642d2c2fd9e4a540dbef1271fdcc0588fe360879 Mon Sep 17 00:00:00 2001 From: OatmealDome Date: Thu, 1 Sep 2022 15:32:54 -0400 Subject: [PATCH] MemorySearcherTool: Use Use std::string with boost::icontains --- src/gui/MemorySearcherTool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/MemorySearcherTool.cpp b/src/gui/MemorySearcherTool.cpp index f86bf462..be2923a7 100644 --- a/src/gui/MemorySearcherTool.cpp +++ b/src/gui/MemorySearcherTool.cpp @@ -300,14 +300,14 @@ void MemorySearcherTool::Load() bool found = false; for (const auto& entry : kDataTypeNames) { - if (boost::iequals(entry, *option_type)) + if (boost::iequals(std::string(entry.mb_str()), *option_type)) { found = true; break; } } - if (!found && !boost::iequals(kDatatypeString, *option_type)) + if (!found && !boost::iequals(std::string(kDatatypeString.mb_str()), *option_type)) continue; wxVector data;