1
0
mirror of synced 2024-11-24 15:50:16 +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 <hex/ui/imgui_imhex_extensions.h>
#include <hex/ui/widgets.hpp>
#include <hex/helpers/utils.hpp>
#include <array>
#include <mutex>
@ -87,10 +88,10 @@ namespace hex::plugin::windows {
std::set<MemoryRegion> m_memoryRegions;
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) {
return memoryRegion.name.contains(search);
return hex::containsIgnoreCase(memoryRegion.name, search);
});
HANDLE m_processHandle = nullptr;