oleaut32: Fix return value in the element not found case.

This commit is contained in:
Huw Davies 2007-05-11 15:28:40 +01:00 committed by Alexandre Julliard
parent a3b8be05b7
commit 356970e529
2 changed files with 1 additions and 5 deletions

View File

@ -623,9 +623,7 @@ todo_wine {
/* Should have six methods */ /* Should have six methods */
hr = ITypeInfo_GetFuncDesc(pTI, 6, &pFD); hr = ITypeInfo_GetFuncDesc(pTI, 6, &pFD);
todo_wine{
ok(hr == TYPE_E_ELEMENTNOTFOUND, "hr %08x\n", hr); ok(hr == TYPE_E_ELEMENTNOTFOUND, "hr %08x\n", hr);
}
hr = ITypeInfo_GetFuncDesc(pTI, 5, &pFD); hr = ITypeInfo_GetFuncDesc(pTI, 5, &pFD);
todo_wine { todo_wine {
ok(hr == S_OK, "hr %08x\n", hr); ok(hr == S_OK, "hr %08x\n", hr);
@ -662,9 +660,7 @@ todo_wine {
ITypeInfo_ReleaseTypeAttr(pTI_p, pTA); ITypeInfo_ReleaseTypeAttr(pTI_p, pTA);
ITypeInfo_Release(pTI_p); ITypeInfo_Release(pTI_p);
hr = ITypeInfo_GetFuncDesc(pTI, 1, &pFD); hr = ITypeInfo_GetFuncDesc(pTI, 1, &pFD);
todo_wine {
ok(hr == TYPE_E_ELEMENTNOTFOUND, "hr %08x\n", hr); ok(hr == TYPE_E_ELEMENTNOTFOUND, "hr %08x\n", hr);
}
hr = ITypeInfo_GetFuncDesc(pTI, 0, &pFD); hr = ITypeInfo_GetFuncDesc(pTI, 0, &pFD);
ok(hr == S_OK, "hr %08x\n", hr); ok(hr == S_OK, "hr %08x\n", hr);
ok(pFD->memid == 0x1c, "memid %08x\n", pFD->memid); ok(pFD->memid == 0x1c, "memid %08x\n", pFD->memid);

View File

@ -4692,7 +4692,7 @@ HRESULT ITypeInfoImpl_GetInternalFuncDesc( ITypeInfo *iface, UINT index, const F
return S_OK; return S_OK;
} }
return E_INVALIDARG; return TYPE_E_ELEMENTNOTFOUND;
} }
/* internal function to make the inherited interfaces' methods appear /* internal function to make the inherited interfaces' methods appear