From 274758c4ffacbafc18eef34e7ce1d417245c230a Mon Sep 17 00:00:00 2001 From: Peace-Maker Date: Wed, 18 Apr 2018 00:58:56 +0200 Subject: [PATCH] Fix not using passed alignment value for argument sizes --- DynamicHooks/convention.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DynamicHooks/convention.h b/DynamicHooks/convention.h index 94c9b63..9d818e0 100644 --- a/DynamicHooks/convention.h +++ b/DynamicHooks/convention.h @@ -158,11 +158,11 @@ public: { DataTypeSized_t &type = m_vecArgTypes[i]; if (!type.size) - type.size = GetDataTypeSize(type); + type.size = GetDataTypeSize(type, iAlignment); } m_returnType = returnType; if (!m_returnType.size) - m_returnType.size = GetDataTypeSize(m_returnType); + m_returnType.size = GetDataTypeSize(m_returnType, iAlignment); m_iAlignment = iAlignment; m_pSavedReturnBuffer = malloc(m_returnType.size); }