Commit 09d787d2 authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

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

parent af3ae0c4
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment