diff options
author | Tor Lillqvist <tml@collabora.com> | 2018-03-08 13:38:25 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2018-05-30 19:29:28 +0200 |
commit | 5afbfd215a108a6bd3b3a8379d789663e1022789 (patch) | |
tree | b00b15b304be6cc4487a5dd9b2b9a4f245b0e156 /extensions | |
parent | 272577e68abe764ab05fe227e3cd7d185c59a900 (diff) |
Implement InterfaceOleWrapper::GetTypeInfoCount()
It is just supposed to return 1, after all. And we do try to implement
the GetTypeInfo().
(Sure, the testing I am doing that turned out to require GetTypeInfo()
to work then immediately after this runs into much harder problems to
solve, but that is another issue.)
Change-Id: If7e0707d7b404d6a46b24e642c2146b3bfff03f0
Reviewed-on: https://gerrit.libreoffice.org/55070
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/ole/unoobjw.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/extensions/source/ole/unoobjw.cxx b/extensions/source/ole/unoobjw.cxx index 50cb5bae638e..8e499b8b2dd2 100644 --- a/extensions/source/ole/unoobjw.cxx +++ b/extensions/source/ole/unoobjw.cxx @@ -184,10 +184,16 @@ STDMETHODIMP InterfaceOleWrapper::getOriginalUnoStruct( Any * pStruct) return ret; } -STDMETHODIMP InterfaceOleWrapper::GetTypeInfoCount( unsigned int * /*pctinfo*/ ) +STDMETHODIMP InterfaceOleWrapper::GetTypeInfoCount( unsigned int *pctinfo ) { - SAL_WARN("extensions.olebridge", "InterfaceOleWrapper@" << this << "::GetTypeInfoCount: NOTIMPL"); - return E_NOTIMPL; + SAL_INFO("extensions.olebridge", "InterfaceOleWrapper@" << this << "::GetTypeInfoCount()"); + + if (!pctinfo) + return E_POINTER; + + *pctinfo = 1; + + return S_OK; } class CXTypeInfo : public ITypeInfo, |