Only set each param to NULL.

This commit is contained in:
Dr!fter 2016-08-31 11:45:47 -04:00
parent 9bfc47801c
commit 928570b8ec

View File

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