oleaut32: Use DISPATCH_HREF_MASK even for non-dual dispatch types.

This commit is contained in:
Vincent Povirk 2009-09-16 14:05:39 -05:00 committed by Alexandre Julliard
parent 004ad9af10
commit 03683b2530
2 changed files with 2 additions and 3 deletions

View File

@ -923,7 +923,7 @@ if(use_midl_tlb) {
href = U(pFD->lprgelemdescParam[0].tdesc).hreftype;
ok((href & 0xff000000) == 0x04000000, "href 0x%08x\n", href);
hr = ITypeInfo_GetRefTypeInfo(pTI, href, &pTI_p);
todo_wine ok(SUCCEEDED(hr), "hr %08x\n", hr);
ok(SUCCEEDED(hr), "hr %08x\n", hr);
if (SUCCEEDED(hr)) ITypeInfo_Release(pTI_p);
ITypeInfo_ReleaseFuncDesc(pTI, pFD);
}

View File

@ -6722,8 +6722,7 @@ static HRESULT WINAPI ITypeInfo_fnGetRefTypeInfo(
result = S_OK;
} else if ((hRefType != -1) && (hRefType & DISPATCH_HREF_MASK) &&
(This->TypeAttr.typekind == TKIND_DISPATCH) &&
(This->TypeAttr.wTypeFlags & TYPEFLAG_FDUAL))
(This->TypeAttr.typekind == TKIND_DISPATCH))
{
HREFTYPE href_dispatch = hRefType;
result = ITypeInfoImpl_GetDispatchRefTypeInfo((ITypeInfo *)iface, &href_dispatch, ppTInfo);