Author: tfaber
Date: Mon Oct 26 11:38:30 2015
New Revision: 69705
URL:
http://svn.reactos.org/svn/reactos?rev=69705&view=rev
Log:
[ATL]
- Revert broken math change in ATL::thunkCode::Init
Modified:
trunk/reactos/lib/atl/atlwin.h
Modified: trunk/reactos/lib/atl/atlwin.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/atl/atlwin.h?rev=69705…
==============================================================================
--- trunk/reactos/lib/atl/atlwin.h [iso-8859-1] (original)
+++ trunk/reactos/lib/atl/atlwin.h [iso-8859-1] Mon Oct 26 11:38:30 2015
@@ -154,7 +154,7 @@
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));
}
};