Module: wine Branch: refs/heads/master Commit: 0b2c0d8365b7dee927e4ec5e39a84a77ae464308 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=0b2c0d8365b7dee927e4ec5e...
Author: Robert Shearman rob@codeweavers.com Date: Sat Jan 14 17:47:36 2006 +0100
oleaut: Initialise more fields in CreateDispTypeInfo. Don't leave some of the fields of the TLBFuncDesc structure uninitialised in CreateDispTypeInfo.
---
dlls/oleaut32/typelib.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index 31f5bad..3fa66c2 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -6385,6 +6385,12 @@ HRESULT WINAPI CreateDispTypeInfo( (*ppFuncDesc)->funcdesc.lprgelemdescParam[param].tdesc.vt = md->ppdata[param].vt; (*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; } *pptinfo = (ITypeInfo*)pTIImpl;