From efd907105cf7906c78253631f75bf4fd83f769db Mon Sep 17 00:00:00 2001 From: Jan Date: Thu, 29 Jun 2023 04:22:33 +0100 Subject: Code cleanup (#478) * turn implicit type casts into standard compliant explicit type casts * correct includes and library names * correct implicit use of std-namespaced functions * turn incomplete virtual implementations into pure virtuals (this also follows what the Source SDK tier0 header does) * define SqRecurseArgs ahead of implementation to fix templating problems * switch out removed getentity with getthisentity * fix calls to curl_easy_escape with wrong types * replace winapi-specific function with std starts_with function * format squirrel header --- NorthstarDLL/core/hooks.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'NorthstarDLL/core/hooks.h') diff --git a/NorthstarDLL/core/hooks.h b/NorthstarDLL/core/hooks.h index d2cb7602..8721628a 100644 --- a/NorthstarDLL/core/hooks.h +++ b/NorthstarDLL/core/hooks.h @@ -197,7 +197,7 @@ class __autohook case PROCADDRESS: { - targetAddr = GetProcAddress(GetModuleHandleA(pModuleName), pProcName); + targetAddr = (LPVOID)GetProcAddress(GetModuleHandleA(pModuleName), pProcName); break; } } -- cgit v1.2.3