From 1a008b9e62c25f775510808062a2fb39ed4671db Mon Sep 17 00:00:00 2001 From: comex Date: Sun, 29 Sep 2013 16:36:26 -0400 Subject: [PATCH] Fix use of ABI_GetAlignedFrameSize. --- Source/Core/Common/Src/x64Thunk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Common/Src/x64Thunk.cpp b/Source/Core/Common/Src/x64Thunk.cpp index a9c19060de..d77d78e40e 100644 --- a/Source/Core/Common/Src/x64Thunk.cpp +++ b/Source/Core/Common/Src/x64Thunk.cpp @@ -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 // matter. 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++) { // ESP is changing, so we do not need i PUSH(32, MDisp(ESP, alignedSize));