stevemk14ebr / PolyHook_2_0

C++20, x86/x64 Hooking Libary v2.0
MIT License
1.6k stars 226 forks source link

Prioritizes writing the jump target address before the actual hook #196

Closed Yangff closed 8 months ago

Yangff commented 8 months ago

This reduces the possibility of crashes when hooking without suspendthreads. The best option may be to stop the entire execution, because even change the order there is a possibility that is hooking while executing at the target address, thus leading to uncontrollable results. But at least doing so does not expose the target to a jump to an uncontrolled address.

stevemk14ebr commented 8 months ago

Thanks! good change