mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-08 21:53:31 +01:00
Fix use of ABI_GetAlignedFrameSize.
This commit is contained in:
parent
ccbf2ac21a
commit
1a008b9e62
@ -105,7 +105,7 @@ void *ThunkManager::ProtectFunction(void *function, int num_params)
|
|||||||
// trickery : we simply re-push the parameters. might not be optimal, but that doesn't really
|
// trickery : we simply re-push the parameters. might not be optimal, but that doesn't really
|
||||||
// matter.
|
// matter.
|
||||||
ABI_AlignStack(num_params * 4, true);
|
ABI_AlignStack(num_params * 4, true);
|
||||||
unsigned int alignedSize = ABI_GetAlignedFrameSize(num_params * 4);
|
unsigned int alignedSize = ABI_GetAlignedFrameSize(num_params * 4, true);
|
||||||
for (int i = 0; i < num_params; i++) {
|
for (int i = 0; i < num_params; i++) {
|
||||||
// ESP is changing, so we do not need i
|
// ESP is changing, so we do not need i
|
||||||
PUSH(32, MDisp(ESP, alignedSize));
|
PUSH(32, MDisp(ESP, alignedSize));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user