mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-23 13:41:02 +00:00
Fix handle_query_internal to only write to buffer on success
This commit is contained in:
@@ -222,8 +222,11 @@ NTSTATUS handle_query_internal(x86_64_emulator& emu, const uint64_t buffer, cons
|
||||
{
|
||||
action(obj);
|
||||
}
|
||||
|
||||
emu.write_memory(buffer, obj);
|
||||
|
||||
if (result == STATUS_SUCCESS)
|
||||
{
|
||||
emu.write_memory(buffer, obj);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user