Commit 926d3a88 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

oleaut32: Improve ITypeInfo2 GetRefTypeOfImplType implementation.

parent 15956152
......@@ -3016,17 +3016,18 @@ static HRESULT WINAPI ITypeInfo2_fnGetRefTypeOfImplType(
if(!pRefType)
return E_INVALIDARG;
if(index == -1) {
if((This->typeinfo->typekind&0xf)==TKIND_DISPATCH
&& (This->typeinfo->flags&TYPEFLAG_FDUAL)) {
if(This->typeinfo->flags&TYPEFLAG_FDUAL) {
if(index == -1) {
*pRefType = -2;
return S_OK;
}
return TYPE_E_ELEMENTNOTFOUND;
if(This->typekind == TKIND_DISPATCH)
return ITypeInfo2_GetRefTypeOfImplType((ITypeInfo2*)&This->dual->lpVtblTypeInfo2,
index, pRefType);
}
if(index >= This->typeinfo->cImplTypes)
if(index>=This->typeinfo->cImplTypes)
return TYPE_E_ELEMENTNOTFOUND;
if(This->typekind == TKIND_INTERFACE) {
......
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