More linux fixes

This commit is contained in:
Peace-Maker 2018-01-27 17:27:03 +01:00
parent b365b775c9
commit 462d9b99b7
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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: