Implement QueryInterface of wxWebViewEdge CInvokable
This commit is contained in:
committed by
Vadim Zeitlin
parent
156eda92d7
commit
66d314c232
@@ -41,14 +41,15 @@ public:
|
|||||||
CInvokable() : m_nRefCount(0) {}
|
CInvokable() : m_nRefCount(0) {}
|
||||||
virtual ~CInvokable() {}
|
virtual ~CInvokable() {}
|
||||||
// IUnknown methods
|
// IUnknown methods
|
||||||
HRESULT STDMETHODCALLTYPE QueryInterface(REFIID WXUNUSED(riid), void** ppvObj) override
|
HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void** ppvObj) override
|
||||||
{
|
{
|
||||||
/**
|
if (riid == __uuidof(baseT) || riid == IID_IUnknown)
|
||||||
* WebView2 Runtime apparently doesn't use this method, so it doesn't
|
{
|
||||||
* matter how we implement this. On the other hand, this method must be
|
*ppvObj = this;
|
||||||
* implemented to make this invokable type a concrete class instead of a
|
AddRef();
|
||||||
* abstract one.
|
return S_OK;
|
||||||
*/
|
}
|
||||||
|
|
||||||
*ppvObj = NULL;
|
*ppvObj = NULL;
|
||||||
return E_NOINTERFACE;
|
return E_NOINTERFACE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user