From 50af68ed8fbf06290dfd518b7e1c35d5bbfaab70 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sat, 21 Dec 2024 11:32:35 +0100 Subject: [PATCH] Support image check --- src/windows-emulator/process_context.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/windows-emulator/process_context.hpp b/src/windows-emulator/process_context.hpp index be4ae037..500c5637 100644 --- a/src/windows-emulator/process_context.hpp +++ b/src/windows-emulator/process_context.hpp @@ -110,6 +110,11 @@ struct section uint32_t section_page_protection{}; uint32_t allocation_attributes{}; + bool is_image() const + { + return this->allocation_attributes & SEC_IMAGE; + } + void serialize(utils::buffer_serializer& buffer) const { buffer.write(this->name);