mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +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:
|
default:
|
||||||
offset = get_stack(idx);
|
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
|
#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
|
#endif
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user