From 58a23248280a67ef91956d12cfd6021dda9fa1de Mon Sep 17 00:00:00 2001 From: Jan Date: Thu, 29 Jun 2023 04:10:08 +0100 Subject: Cast types in MAKEHOOK macro to follow C++ Standard (#489) --- NorthstarDLL/core/hooks.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NorthstarDLL/core/hooks.h b/NorthstarDLL/core/hooks.h index 0144712f..d2cb7602 100644 --- a/NorthstarDLL/core/hooks.h +++ b/NorthstarDLL/core/hooks.h @@ -280,7 +280,7 @@ class ManualHook args void MakeHook(LPVOID pTarget, LPVOID pDetour, void* ppOriginal, const char* pFuncName = ""); -#define MAKEHOOK(pTarget, pDetour, ppOriginal) MakeHook(pTarget, pDetour, ppOriginal, __STR(pDetour)) +#define MAKEHOOK(pTarget, pDetour, ppOriginal) MakeHook((LPVOID)pTarget, (LPVOID)pDetour, (void*)ppOriginal, __STR(pDetour)) class __autovar { -- cgit v1.2.3