oleaut32: When loading typelibs, skip over function default parameters as well.

This commit is contained in:
Andrew Eikum 2013-06-04 08:18:55 -05:00 committed by Alexandre Julliard
parent af3ae0c4f2
commit 09d787d2d5
1 changed files with 2 additions and 0 deletions

View File

@ -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;