[PATCH 2/3] oleaut32: When loading typelibs, skip over function default parameters as well

Andrew Eikum aeikum at codeweavers.com
Tue Jun 4 08:18:55 CDT 2013


---
 dlls/oleaut32/typelib.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c
index ffb1a21..843283a 100644
--- a/dlls/oleaut32/typelib.c
+++ b/dlls/oleaut32/typelib.c
@@ -2310,6 +2310,8 @@ MSFT_DoFuncs(TLBContext*     pcx,
 
         /* size without argument data */
         optional = reclength - pFuncRec->nrargs*sizeof(MSFT_ParameterInfo);
+        if (pFuncRec->FKCCIC & 0x1000)
+            optional -= pFuncRec->nrargs * sizeof(INT);
 
         if (optional > FIELD_OFFSET(MSFT_FuncRecord, HelpContext))
             ptfd->helpcontext = pFuncRec->HelpContext;
-- 
1.8.3





More information about the wine-patches mailing list