Fix handle_query_internal to only write to buffer on success

This commit is contained in:
Red
2025-06-15 12:04:58 +02:00
parent 567aa52af3
commit 9d406b91d8

View File

@@ -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;
}