Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix use of ABI_GetAlignedFrameSize.
  • Loading branch information
comex committed Sep 29, 2013
1 parent ccbf2ac commit 1a008b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Common/Src/x64Thunk.cpp
Expand Up @@ -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));
Expand Down

0 comments on commit 1a008b9

Please sign in to comment.