Fix hook deletions

This commit is contained in:
momo5502
2025-01-07 17:59:19 +01:00
parent 6a1da27afe
commit 252ab1fed1

View File

@@ -27,7 +27,7 @@ namespace
win_emu.emu().hook_memory_write(
win_emu.process().peb.value() + offsetof(PEB64, ProcessParameters), 0x8,
[&, cache_logging](const uint64_t address, size_t, const uint64_t value) {
[&win_emu, cache_logging, params_hook](const uint64_t address, size_t, const uint64_t value) mutable {
const auto target_address = win_emu.process().peb.value() + offsetof(PEB64, ProcessParameters);
if (address == target_address)