From 462d9b99b7659a33e9a1eefacaf0ffcf953bd70c Mon Sep 17 00:00:00 2001 From: Peace-Maker Date: Sat, 27 Jan 2018 17:27:03 +0100 Subject: [PATCH] More linux fixes --- dynhooks_sourcepawn.cpp | 2 +- dynhooks_sourcepawn.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dynhooks_sourcepawn.cpp b/dynhooks_sourcepawn.cpp index 0a334ba..6a1e70d 100644 --- a/dynhooks_sourcepawn.cpp +++ b/dynhooks_sourcepawn.cpp @@ -582,7 +582,7 @@ HookParamsStruct *CDynamicHooksSourcePawn::GetParamStruct() memcpy(params->orgParams, pArgPtr, stackSize); } - memset(params->newParams, NULL, paramsSize); + memset(params->newParams, 0, paramsSize); memset(params->isChanged, false, numArgs * sizeof(bool)); int firstArg = 0; diff --git a/dynhooks_sourcepawn.h b/dynhooks_sourcepawn.h index fd81522..4f0e656 100644 --- a/dynhooks_sourcepawn.h +++ b/dynhooks_sourcepawn.h @@ -24,7 +24,7 @@ public: CDynamicHooksSourcePawn(HookSetup *setup, CHook *pDetour, IPluginFunction *pCallback, bool post); HookReturnStruct *GetReturnStruct(); - HookParamsStruct *CDynamicHooksSourcePawn::GetParamStruct(); + HookParamsStruct *GetParamStruct(); void UpdateParamsFromStruct(HookParamsStruct *params); public: