1
0
mirror of synced 2025-02-17 18:59:21 +01:00

fix: Process Memory provider search not being case insensitive

This commit is contained in:
WerWolv 2023-01-28 11:41:09 +01:00
parent 3254376d28
commit 9b80486285
2 changed files with 4 additions and 3 deletions

@ -1 +1 @@
Subproject commit 97dc66c2b3da4357c5596e4b2308210505ba6178 Subproject commit a866df98fe3532ed28f9753a0a2ea4599f71fa52

View File

@ -8,6 +8,7 @@
#include <imgui.h> #include <imgui.h>
#include <hex/ui/imgui_imhex_extensions.h> #include <hex/ui/imgui_imhex_extensions.h>
#include <hex/ui/widgets.hpp> #include <hex/ui/widgets.hpp>
#include <hex/helpers/utils.hpp>
#include <array> #include <array>
#include <mutex> #include <mutex>
@ -87,10 +88,10 @@ namespace hex::plugin::windows {
std::set<MemoryRegion> m_memoryRegions; std::set<MemoryRegion> m_memoryRegions;
ui::SearchableWidget<Process> m_processSearchWidget = ui::SearchableWidget<Process>([](const std::string &search, const Process &process) { ui::SearchableWidget<Process> m_processSearchWidget = ui::SearchableWidget<Process>([](const std::string &search, const Process &process) {
return process.name.contains(search); return hex::containsIgnoreCase(process.name, search);
}); });
ui::SearchableWidget<MemoryRegion> m_regionSearchWidget = ui::SearchableWidget<MemoryRegion>([](const std::string &search, const MemoryRegion &memoryRegion) { ui::SearchableWidget<MemoryRegion> m_regionSearchWidget = ui::SearchableWidget<MemoryRegion>([](const std::string &search, const MemoryRegion &memoryRegion) {
return memoryRegion.name.contains(search); return hex::containsIgnoreCase(memoryRegion.name, search);
}); });
HANDLE m_processHandle = nullptr; HANDLE m_processHandle = nullptr;