1.1 --- a/sourcehook/sourcehook_impl_cproto.h Fri Oct 12 19:25:20 2007 +0000
1.2 +++ b/sourcehook/sourcehook_impl_cproto.h Fri Oct 12 20:14:10 2007 +0000
1.3 @@ -70,9 +70,15 @@
1.4 return m_Proto;
1.5 }
1.6
1.7 + // For old sourcehook.h: flags 0 -> assume ByVal
1.8 + static unsigned int GetRealFlags(const PassInfo &info)
1.9 + {
1.10 + return (info.flags == 0) ? PassInfo::PassFlag_ByVal : info.flags;
1.11 + }
1.12 +
1.13 static size_t GetRealSize(const PassInfo &info)
1.14 {
1.15 - if (info.flags & PassInfo::PassFlag_ByRef)
1.16 + if (GetRealFlags(info) & PassInfo::PassFlag_ByRef)
1.17 {
1.18 return sizeof(void*);
1.19 }