diff --git a/core-legacy/sourcehook/generate/sourcehook.h b/core-legacy/sourcehook/generate/sourcehook.h index e98bf42..cc93900 100644 --- a/core-legacy/sourcehook/generate/sourcehook.h +++ b/core-legacy/sourcehook/generate/sourcehook.h @@ -5204,7 +5204,7 @@ namespace SourceHook MemFuncInfo mfi = {true, -1, 0, 0}; \ GetFuncInfo(CCW::GRP(ptr), mfp, mfi); \ void *vfnptr = reinterpret_cast( \ - *reinterpret_cast(reinterpret_cast(ptr) + mfi.thisptroffs + mfi.vtbloffs) + mfi.vtblindex); + *reinterpret_cast(reinterpret_cast(CCW::GRP(ptr)) + mfi.thisptroffs + mfi.vtbloffs) + mfi.vtblindex); #define SH__CALL_GET_VFNPTR_MANUAL \ using namespace ::SourceHook; \ diff --git a/core-legacy/sourcehook/generate/sourcehook.hxx b/core-legacy/sourcehook/generate/sourcehook.hxx index bf78003..c1852c6 100755 --- a/core-legacy/sourcehook/generate/sourcehook.hxx +++ b/core-legacy/sourcehook/generate/sourcehook.hxx @@ -1370,7 +1370,7 @@ namespace SourceHook MemFuncInfo mfi = {true, -1, 0, 0}; \ GetFuncInfo(CCW::GRP(ptr), mfp, mfi); \ void *vfnptr = reinterpret_cast( \ - *reinterpret_cast(reinterpret_cast(ptr) + mfi.thisptroffs + mfi.vtbloffs) + mfi.vtblindex); + *reinterpret_cast(reinterpret_cast(CCW::GRP(ptr)) + mfi.thisptroffs + mfi.vtbloffs) + mfi.vtblindex); #define SH__CALL_GET_VFNPTR_MANUAL \ using namespace ::SourceHook; \ diff --git a/core-legacy/sourcehook/sourcehook.h b/core-legacy/sourcehook/sourcehook.h index fecc7d7..575614b 100644 --- a/core-legacy/sourcehook/sourcehook.h +++ b/core-legacy/sourcehook/sourcehook.h @@ -5214,7 +5214,7 @@ namespace SourceHook MemFuncInfo mfi = {true, -1, 0, 0}; \ GetFuncInfo(CCW::GRP(ptr), mfp, mfi); \ void *vfnptr = reinterpret_cast( \ - *reinterpret_cast(reinterpret_cast(ptr) + mfi.thisptroffs + mfi.vtbloffs) + mfi.vtblindex); + *reinterpret_cast(reinterpret_cast(CCW::GRP(ptr)) + mfi.thisptroffs + mfi.vtbloffs) + mfi.vtblindex); #define SH__CALL_GET_VFNPTR_MANUAL \ using namespace ::SourceHook; \