Only set each param to NULL.
This commit is contained in:
parent
9bfc47801c
commit
928570b8ec
@ -179,13 +179,10 @@ HookParamsStruct *GetParamStruct(DHooksCallback *dg, void **argStack, size_t arg
|
||||
|
||||
for (unsigned int i = 0; i < dg->params.size(); i++)
|
||||
{
|
||||
*(void **)((intptr_t)params->newParams + GetParamOffset(params, i)) = NULL;
|
||||
params->isChanged[i] = false;
|
||||
}
|
||||
|
||||
for(unsigned int i = 0; i < paramsSize; i++)
|
||||
{
|
||||
*(void **)((intptr_t)params->newParams + i) = NULL;
|
||||
}
|
||||
return params;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user