Module: wine Branch: master Commit: d2319ae841dadf086d86819410e4b0085f167f55 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d2319ae841dadf086d86819410...
Author: Piotr Caban piotr@codeweavers.com Date: Wed Mar 17 22:05:36 2010 +0100
oleaut32: Fix ITypeInfo GetImplTypeFlags for dispinterfaces.
---
dlls/oleaut32/typelib.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c index 08a39b9..b09f7ab 100644 --- a/dlls/oleaut32/typelib.c +++ b/dlls/oleaut32/typelib.c @@ -5581,6 +5581,11 @@ static HRESULT WINAPI ITypeInfo_fnGetImplTypeFlags( ITypeInfo2 *iface, return S_OK; } *pImplTypeFlags=0; + + if(This->TypeAttr.typekind==TKIND_DISPATCH && !index) + return S_OK; + + WARN("ImplType %d not found\n", index); return TYPE_E_ELEMENTNOTFOUND; }