diff --git a/Common/Thunk.cpp b/Common/Thunk.cpp index 1e66caf287..4b4c5789fd 100644 --- a/Common/Thunk.cpp +++ b/Common/Thunk.cpp @@ -37,8 +37,8 @@ using namespace Gen; void ThunkManager::Init() { #ifdef _M_X64 - // Account for the return address. - int stackOffset = 0x8; + // Account for the return address and "home space" on Windows (which needs to be at the bottom.) + const int stackOffset = ThunkStackOffset(); int stackPosition; #endif