mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 13:10:39 +00:00
[ATL]
- Revert broken math change in ATL::thunkCode::Init svn path=/trunk/; revision=69705
This commit is contained in:
parent
4b92ce00d5
commit
8c44eaadfa
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue