From 66d30ff793c6e5ddd85ae6d980c5b05aec118396 Mon Sep 17 00:00:00 2001 From: Dr!fter Date: Wed, 31 Aug 2016 11:37:48 -0400 Subject: [PATCH] Fix getting the wrong stack size for calling functions. --- vfunc_call.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;