oleaut: Initialise more fields in CreateDispTypeInfo.

Don't leave some of the fields of the TLBFuncDesc structure
uninitialised in CreateDispTypeInfo.
This commit is contained in:
Robert Shearman 2006-01-14 17:47:36 +01:00 committed by Alexandre Julliard
parent 878af6661e
commit 0b2c0d8365
1 changed files with 6 additions and 0 deletions

View File

@ -6385,6 +6385,12 @@ HRESULT WINAPI CreateDispTypeInfo(
(*ppFuncDesc)->funcdesc.lprgelemdescParam[param].tdesc.vt = md->ppdata[param].vt; (*ppFuncDesc)->funcdesc.lprgelemdescParam[param].tdesc.vt = md->ppdata[param].vt;
(*ppFuncDesc)->pParamDesc[param].Name = SysAllocString(md->ppdata[param].szName); (*ppFuncDesc)->pParamDesc[param].Name = SysAllocString(md->ppdata[param].szName);
} }
(*ppFuncDesc)->helpcontext = 0;
(*ppFuncDesc)->HelpStringContext = 0;
(*ppFuncDesc)->HelpString = NULL;
(*ppFuncDesc)->Entry = NULL;
(*ppFuncDesc)->ctCustData = 0;
(*ppFuncDesc)->pCustData = NULL;
ppFuncDesc = &(*ppFuncDesc)->next; ppFuncDesc = &(*ppFuncDesc)->next;
} }
*pptinfo = (ITypeInfo*)pTIImpl; *pptinfo = (ITypeInfo*)pTIImpl;