aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan <sentrycraft123@gmail.com>2023-06-29 04:10:08 +0100
committerGitHub <noreply@github.com>2023-06-28 23:10:08 -0400
commit58a23248280a67ef91956d12cfd6021dda9fa1de (patch)
tree2f3db827e2d870bc5844b2fedbf67e8d3124e115
parent23594f24d3a2b09f5d8f912a773540ff3c1db841 (diff)
downloadNorthstarLauncher-58a23248280a67ef91956d12cfd6021dda9fa1de.tar.gz
NorthstarLauncher-58a23248280a67ef91956d12cfd6021dda9fa1de.zip
Cast types in MAKEHOOK macro to follow C++ Standard (#489)
-rw-r--r--NorthstarDLL/core/hooks.h2
1 files changed, 1 insertions, 1 deletions
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
{