diff --git a/vfunc_call.h b/vfunc_call.h index ac792dc..67a0c6a 100644 --- a/vfunc_call.h +++ b/vfunc_call.h @@ -55,7 +55,7 @@ T CallVFunction(DHooksCallback *dg, HookParamsStruct *paramStruct, void *iface) ICallWrapper *pCall; - size_t size = GetStackArgsSize(dg); + size_t size = GetParamsSize(dg); unsigned char *vstk = (unsigned char *)malloc(sizeof(void *) + size); unsigned char *vptr = vstk; @@ -154,7 +154,7 @@ SDKVector CallVFunction(DHooksCallback *dg, HookParamsStruct *paramSt ICallWrapper *pCall; - size_t size = GetStackArgsSize(dg); + size_t size = GetParamsSize(dg); unsigned char *vstk = (unsigned char *)malloc(sizeof(void *) + size); unsigned char *vptr = vstk; @@ -245,7 +245,7 @@ string_t CallVFunction(DHooksCallback *dg, HookParamsStruct *paramStru ICallWrapper *pCall; - size_t size = GetStackArgsSize(dg); + size_t size = GetParamsSize(dg); unsigned char *vstk = (unsigned char *)malloc(sizeof(void *) + size); unsigned char *vptr = vstk;