From 8c44eaadfa79e712959cddce4a1fccef1bc8c832 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Mon, 26 Oct 2015 11:38:30 +0000 Subject: [PATCH] [ATL] - Revert broken math change in ATL::thunkCode::Init svn path=/trunk/; revision=69705 --- reactos/lib/atl/atlwin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/atl/atlwin.h b/reactos/lib/atl/atlwin.h index 028a59c3361..f384b90b894 100644 --- a/reactos/lib/atl/atlwin.h +++ b/reactos/lib/atl/atlwin.h @@ -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(proc) - (reinterpret_cast(this) + sizeof(thunkCode))); FlushInstructionCache(GetCurrentProcess(), this, sizeof(thunkCode)); } };