From 9b804862856bce92cfb1fd870af213d0d54cd72b Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 28 Jan 2023 11:41:09 +0100 Subject: [PATCH] fix: Process Memory provider search not being case insensitive --- lib/external/pattern_language | 2 +- .../include/content/providers/process_memory_provider.hpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/external/pattern_language b/lib/external/pattern_language index 97dc66c2b..a866df98f 160000 --- a/lib/external/pattern_language +++ b/lib/external/pattern_language @@ -1 +1 @@ -Subproject commit 97dc66c2b3da4357c5596e4b2308210505ba6178 +Subproject commit a866df98fe3532ed28f9753a0a2ea4599f71fa52 diff --git a/plugins/windows/include/content/providers/process_memory_provider.hpp b/plugins/windows/include/content/providers/process_memory_provider.hpp index d8dd70b20..89e1f50ac 100644 --- a/plugins/windows/include/content/providers/process_memory_provider.hpp +++ b/plugins/windows/include/content/providers/process_memory_provider.hpp @@ -8,6 +8,7 @@ #include #include #include +#include #include #include @@ -87,10 +88,10 @@ namespace hex::plugin::windows { std::set m_memoryRegions; ui::SearchableWidget m_processSearchWidget = ui::SearchableWidget([](const std::string &search, const Process &process) { - return process.name.contains(search); + return hex::containsIgnoreCase(process.name, search); }); ui::SearchableWidget m_regionSearchWidget = ui::SearchableWidget([](const std::string &search, const MemoryRegion &memoryRegion) { - return memoryRegion.name.contains(search); + return hex::containsIgnoreCase(memoryRegion.name, search); }); HANDLE m_processHandle = nullptr;