mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-27 15:44:12 +08:00
.
This commit is contained in:
parent
dc79d35437
commit
c3f232dcfc
@ -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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user