mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 12:23:30 +00:00
[ATL]
- Revert broken math change in ATL::thunkCode::Init svn path=/trunk/; revision=69705
This commit is contained in:
@@ -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));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user