diff --git a/src/windows-emulator/module/module_manager.cpp b/src/windows-emulator/module/module_manager.cpp index 4a2a491b..5b3cafe9 100644 --- a/src/windows-emulator/module/module_manager.cpp +++ b/src/windows-emulator/module/module_manager.cpp @@ -531,7 +531,7 @@ mapped_module* module_manager::map_memory_module(uint64_t base_address, uint64_t void module_manager::serialize(utils::buffer_serializer& buffer) const { buffer.write_map(this->modules_); - buffer.write_map(this->module_load_count); + //buffer.write_map(this->module_load_count); buffer.write(this->executable ? this->executable->image_base : 0); buffer.write(this->ntdll ? this->ntdll->image_base : 0); @@ -549,7 +549,7 @@ void module_manager::serialize(utils::buffer_serializer& buffer) const void module_manager::deserialize(utils::buffer_deserializer& buffer) { buffer.read_map(this->modules_); - buffer.read_map(this->module_load_count); + //buffer.read_map(this->module_load_count); this->last_module_cache_ = this->modules_.end(); const auto executable_base = buffer.read(); diff --git a/src/windows-emulator/module/module_manager.hpp b/src/windows-emulator/module/module_manager.hpp index 6f8e837f..95fd671e 100644 --- a/src/windows-emulator/module/module_manager.hpp +++ b/src/windows-emulator/module/module_manager.hpp @@ -159,7 +159,7 @@ class module_manager mapped_module* executable{}; mapped_module* ntdll{}; mapped_module* win32u{}; - std::map module_load_count; + std::unordered_map module_load_count; // WOW64-specific modules (for validation and future use) struct wow64_modules diff --git a/src/windows-emulator/windows_path.hpp b/src/windows-emulator/windows_path.hpp index 5473a8a6..0d9e3d67 100644 --- a/src/windows-emulator/windows_path.hpp +++ b/src/windows-emulator/windows_path.hpp @@ -256,11 +256,6 @@ class windows_path return !this->operator==(other); } - bool operator<(const windows_path& other) const - { - return this->string().length() < other.string().length(); - } - bool empty() const { return this->is_relative() && this->folders_.empty();