- Revert broken math change in ATL::thunkCode::Init

svn path=/trunk/; revision=69705
This commit is contained in:
Thomas Faber 2015-10-26 11:38:30 +00:00
parent 4b92ce00d5
commit 8c44eaadfa

View file

@ -154,7 +154,7 @@ struct thunkCode
m_mov = 0x042444C7;
m_this = PtrToUlong(pThis);
m_jmp = 0xe9;
m_relproc = DWORD((INT_PTR)proc - (INT_PTR)this + sizeof(thunkCode));
m_relproc = DWORD(reinterpret_cast<char *>(proc) - (reinterpret_cast<char *>(this) + sizeof(thunkCode)));
FlushInstructionCache(GetCurrentProcess(), this, sizeof(thunkCode));
}
};