[PATCH 05/14] vbscript: Implement ScriptTypeInfo_GetRefTypeOfImplType.
Gabriel Ivăncescu
gabrielopcode at gmail.com
Mon Dec 9 09:29:28 CST 2019
Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---
The return value matches Windows and makes sense for GetRefTypeInfo.
dlls/vbscript/vbdisp.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/dlls/vbscript/vbdisp.c b/dlls/vbscript/vbdisp.c
index 5d43c43..d14a2f6 100644
--- a/dlls/vbscript/vbdisp.c
+++ b/dlls/vbscript/vbdisp.c
@@ -788,9 +788,14 @@ static HRESULT WINAPI ScriptTypeInfo_GetRefTypeOfImplType(ITypeInfo *iface, UINT
{
ScriptTypeInfo *This = ScriptTypeInfo_from_ITypeInfo(iface);
- FIXME("(%p)->(%u %p)\n", This, index, pRefType);
+ TRACE("(%p)->(%u %p)\n", This, index, pRefType);
- return E_NOTIMPL;
+ /* We only inherit from IDispatch */
+ if (!pRefType) return E_INVALIDARG;
+ if (index != 0) return TYPE_E_ELEMENTNOTFOUND;
+
+ *pRefType = 1;
+ return S_OK;
}
static HRESULT WINAPI ScriptTypeInfo_GetImplTypeFlags(ITypeInfo *iface, UINT index, INT *pImplTypeFlags)
--
2.21.0
More information about the wine-devel
mailing list