Properly allow for Windows' "home space" on x64.

Fixes #5484.
This commit is contained in:
Unknown W. Brackets 2014-02-16 21:05:43 -08:00
parent b25b0ee06e
commit 60515bbcd9

View File

@ -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