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)); } };