simplify _loop so that the "prologe" is shorter and the jump is back into
the first < 5 bytes
This commit is contained in:
@@ -49,10 +49,10 @@ uint32_t PolyHook_Hooks::hookRDRAND(void) {
|
||||
return trueRDRAND();
|
||||
}
|
||||
|
||||
uint32_t PolyHook_Hooks::hookLoop(uint32_t num, uint32_t cnt) {
|
||||
uint32_t PolyHook_Hooks::hookLoop(uint32_t x) {
|
||||
g_PolyHook->loop = true;
|
||||
|
||||
return trueLoop(num, cnt);
|
||||
return trueLoop(x);
|
||||
}
|
||||
|
||||
uint32_t PolyHook_Hooks::hookTail_recursion(uint32_t x) {
|
||||
|
||||
Reference in New Issue
Block a user