This commit is contained in:
恍兮惚兮 2024-12-09 17:02:55 +08:00
parent dc79d35437
commit c3f232dcfc

View File

@ -159,8 +159,8 @@ inline uintptr_t *argidx(hook_stack *stack, int idx)
default:
offset = get_stack(idx);
}
return (uintptr_t *)((uintptr_t)stack + sizeof(hook_stack) - sizeof(uintptr_t) + offset);
return (uintptr_t *)(stack->get_base() + offset);
#else
return (uintptr_t *)((uintptr_t)stack + sizeof(hook_stack) - sizeof(uintptr_t) + get_stack(idx));
return (uintptr_t *)(stack->get_base() + get_stack(idx));
#endif
}