Rob Shearman : oleaut32:
Initialise all members of the FUNCDESC structure in CreateDispTypeInfo.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Oct 24 13:39:50 CDT 2006
Module: wine
Branch: master
Commit: d72ef78fa67731fe0aca1b313275f07635261d0b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d72ef78fa67731fe0aca1b313275f07635261d0b
Author: Rob Shearman <rob at codeweavers.com>
Date: Tue Oct 24 13:00:46 2006 +0100
oleaut32: Initialise all members of the FUNCDESC structure in CreateDispTypeInfo.
---
dlls/oleaut32/typelib.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c
index d866b9b..5485c79 100644
--- a/dlls/oleaut32/typelib.c
+++ b/dlls/oleaut32/typelib.c
@@ -6721,12 +6721,14 @@ HRESULT WINAPI CreateDispTypeInfo(
*ppFuncDesc = HeapAlloc(GetProcessHeap(), 0, sizeof(**ppFuncDesc));
(*ppFuncDesc)->Name = SysAllocString(md->szName);
(*ppFuncDesc)->funcdesc.memid = md->dispid;
+ (*ppFuncDesc)->funcdesc.lprgscode = NULL;
(*ppFuncDesc)->funcdesc.funckind = FUNC_VIRTUAL;
(*ppFuncDesc)->funcdesc.invkind = md->wFlags;
(*ppFuncDesc)->funcdesc.callconv = md->cc;
(*ppFuncDesc)->funcdesc.cParams = md->cArgs;
(*ppFuncDesc)->funcdesc.cParamsOpt = 0;
(*ppFuncDesc)->funcdesc.oVft = md->iMeth << 2;
+ (*ppFuncDesc)->funcdesc.cScodes = 0;
(*ppFuncDesc)->funcdesc.wFuncFlags = 0;
(*ppFuncDesc)->funcdesc.elemdescFunc.tdesc.vt = md->vtReturn;
(*ppFuncDesc)->funcdesc.elemdescFunc.u.paramdesc.wParamFlags = PARAMFLAG_NONE;
More information about the wine-cvs
mailing list