Commit 004ad9af authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

oleaut32: Add test for HREFTYPE's from inherited methods.

parent 8b8af9c8
...@@ -285,7 +285,7 @@ library TestTypelib ...@@ -285,7 +285,7 @@ library TestTypelib
] ]
interface ItestIF7 : ItestIF6 interface ItestIF7 : ItestIF6
{ {
[id(0x1236)] HRESULT fn6([in] int a); [id(0x1236)] HRESULT fn6([in] GUID a);
} }
[ [
......
...@@ -915,6 +915,16 @@ if(use_midl_tlb) { ...@@ -915,6 +915,16 @@ if(use_midl_tlb) {
ok(hr == S_OK, "hr %08x\n", hr); ok(hr == S_OK, "hr %08x\n", hr);
ok(pFD->memid == 0x1236, "memid %08x\n", pFD->memid); ok(pFD->memid == 0x1236, "memid %08x\n", pFD->memid);
ok(pFD->oVft == 9 * sizeof(void *), "oVft %d\n", pFD->oVft); ok(pFD->oVft == 9 * sizeof(void *), "oVft %d\n", pFD->oVft);
/* first argument to 10th function is an HREFTYPE from the impl type */
ok(pFD->cParams == 1, "cParams %i\n", pFD->cParams);
ok(pFD->lprgelemdescParam[0].tdesc.vt == VT_USERDEFINED,
"vt 0x%x\n", pFD->lprgelemdescParam[0].tdesc.vt);
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);
if (SUCCEEDED(hr)) ITypeInfo_Release(pTI_p);
ITypeInfo_ReleaseFuncDesc(pTI, pFD); ITypeInfo_ReleaseFuncDesc(pTI, pFD);
} }
ITypeInfo_Release(pTI); ITypeInfo_Release(pTI);
......
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