From 9bfc47801ca3e43331c77c663d5efba4e2f815e9 Mon Sep 17 00:00:00 2001 From: Dr!fter Date: Wed, 31 Aug 2016 11:44:35 -0400 Subject: [PATCH] Fix linux getting incorrect stack size. --- util.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/util.cpp b/util.cpp index e55f155..514891c 100644 --- a/util.cpp +++ b/util.cpp @@ -35,19 +35,12 @@ size_t GetParamTypeSize(HookParamType type) return sizeof(void *); } -size_t GetParamsSize(DHooksCallback *dg) +size_t GetParamsSize(DHooksCallback *dg)//Get the full size, this is for creating the STACK. { size_t res = 0; for (int i = dg->params.size() - 1; i >= 0; i--) { -#ifndef WIN32 - if (dg->params.at(i).type == HookParamType_Object && (dg->params.at(i).flags & PASSFLAG_ODTOR)) //Passed by refrence - { - res += sizeof(void *); - continue; - } -#endif res += dg->params.at(i).size; }