From d7dd64f8961811f54b210759b4cd44d9ba48dda1 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sat, 7 Sep 2024 15:07:51 +0200 Subject: [PATCH] Small adjustments --- src/windows_emulator/main.cpp | 4 ++-- src/windows_emulator/module_mapper.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/windows_emulator/main.cpp b/src/windows_emulator/main.cpp index 49f57ae..e080172 100644 --- a/src/windows_emulator/main.cpp +++ b/src/windows_emulator/main.cpp @@ -30,7 +30,7 @@ #define GDT_LIMIT 0x1000 #define GDT_ENTRY_SIZE 0x8 -bool use_gdb = true; +bool use_gdb = false; struct breakpoint_key { @@ -745,9 +745,9 @@ namespace { frame.rip = pointers.ContextRecord->Rip; frame.rsp = pointers.ContextRecord->Rsp; - frame.eflags = pointers.ContextRecord->EFlags; frame.ss = pointers.ContextRecord->SegSs; frame.cs = pointers.ContextRecord->SegCs; + frame.eflags = pointers.ContextRecord->EFlags; }); printf("ContextRecord: %llX\n", context_record_obj.value()); diff --git a/src/windows_emulator/module_mapper.cpp b/src/windows_emulator/module_mapper.cpp index f73829d..14c06a4 100644 --- a/src/windows_emulator/module_mapper.cpp +++ b/src/windows_emulator/module_mapper.cpp @@ -227,7 +227,7 @@ std::optional map_file(x64_emulator& emu, const std::filesystem:: auto binary = map_module(emu, data, file.generic_string()); - //hook_exports(emu, binary, file); + hook_exports(emu, binary, file); return binary; }