diff --git a/core/sourcehook/sourcehook_hookmangen_x86_64.cpp b/core/sourcehook/sourcehook_hookmangen_x86_64.cpp index 3a6113e..85dc050 100644 --- a/core/sourcehook/sourcehook_hookmangen_x86_64.cpp +++ b/core/sourcehook/sourcehook_hookmangen_x86_64.cpp @@ -1443,7 +1443,9 @@ namespace SourceHook // // Result: we cannot detect if it should be register or memory without knowing the layout of the object. - if (hasSpecialFunctions) + bool tooBig = (pi.size > (8 * 8)); + + if (hasSpecialFunctions || tooBig) { pi.flags |= PassInfo::PassFlag_RetMem; return true;