Open ThirteenAG opened 3 months ago
Upon closer inspection, on my end this code works fine:
VirtualProtect(from, len, new_protect, &from_protect);
VirtualProtect(to, len, new_protect, &to_protect);
if (run_fn) {
run_fn();
}
VirtualProtect(to, len, to_protect, &to_protect);
VirtualProtect(from, len, from_protect, &from_protect);
However, with RGL version stepping through this:
Shows that Kernel32.VirtualProtect protection changes, despite ["from"; "from+len"] not pointing to it, which leads to crash. Is this magic?
This is not something I can personally reproduce, since launching from steam that launches RGL that launches the game (GTA5 in this case) works fine. However I was sent a crash dump that has this:
The reason of exception is this
I'm not sure if anything can be done to fix/avoid this, since it's not easy to reproduce, maybe it's anticheat kicks in, maybe something else.