mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-11 16:46:16 +00:00
Fix code formatting issues
This commit is contained in:
@@ -118,14 +118,14 @@ void syscall_dispatcher::dispatch(windows_emulator& win_emu)
|
||||
}
|
||||
}
|
||||
|
||||
void syscall_dispatcher::dispatch_callback(windows_emulator& win_emu, std::string syscall_name)
|
||||
void syscall_dispatcher::dispatch_callback(windows_emulator& win_emu, std::string& syscall_name)
|
||||
{
|
||||
auto& emu = win_emu.emu();
|
||||
auto& context = win_emu.process;
|
||||
|
||||
if (context.instrumentation_callback != 0 && syscall_name != "NtContinue")
|
||||
{
|
||||
uint64_t rip_old = emu.reg<uint64_t>(x86_register::rip);
|
||||
auto rip_old = emu.reg<uint64_t>(x86_register::rip);
|
||||
|
||||
// The increase in RIP caused by executing the syscall here has not yet occurred.
|
||||
// If RIP is set directly, it will lead to an incorrect address, so the length of
|
||||
|
||||
@@ -21,7 +21,7 @@ class syscall_dispatcher
|
||||
std::span<const std::byte> win32u_data);
|
||||
|
||||
void dispatch(windows_emulator& win_emu);
|
||||
void dispatch_callback(windows_emulator& win_emu, std::string syscall_name);
|
||||
static void dispatch_callback(windows_emulator& win_emu, std::string& syscall_name);
|
||||
|
||||
void serialize(utils::buffer_serializer& buffer) const;
|
||||
void deserialize(utils::buffer_deserializer& buffer);
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace syscalls
|
||||
|
||||
if (error_status & STATUS_SERVICE_NOTIFICATION && number_of_parameters >= 3)
|
||||
{
|
||||
uint64_t params[3] = {0, 0, 0};
|
||||
std::array<uint64_t, 3> params = {0, 0, 0};
|
||||
|
||||
if (c.emu.try_read_memory(parameters, ¶ms, sizeof(params)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user