From 60515bbcd93b0eea3bb3de1a27a321511821135b Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 16 Feb 2014 21:05:43 -0800 Subject: [PATCH] Properly allow for Windows' "home space" on x64. Fixes #5484. --- Common/Thunk.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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