Fix building with MSVC 32 bit
This commit is contained in:
parent
84b19a0ce0
commit
ad1219d0a2
@ -36,7 +36,7 @@ public:
|
|||||||
CInvokable() : m_nRefCount(0) {}
|
CInvokable() : m_nRefCount(0) {}
|
||||||
virtual ~CInvokable() {}
|
virtual ~CInvokable() {}
|
||||||
// IUnknown methods
|
// IUnknown methods
|
||||||
HRESULT QueryInterface(REFIID WXUNUSED(riid), void **ppvObj) override
|
HRESULT STDMETHODCALLTYPE QueryInterface(REFIID WXUNUSED(riid), void **ppvObj) override
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* WebView2 Runtime apparently doesn't use this method, so it doesn't
|
* WebView2 Runtime apparently doesn't use this method, so it doesn't
|
||||||
@ -47,10 +47,10 @@ public:
|
|||||||
*ppvObj = NULL;
|
*ppvObj = NULL;
|
||||||
return E_NOINTERFACE;
|
return E_NOINTERFACE;
|
||||||
}
|
}
|
||||||
ULONG AddRef(void) override {
|
ULONG STDMETHODCALLTYPE AddRef(void) override {
|
||||||
return ++m_nRefCount;
|
return ++m_nRefCount;
|
||||||
}
|
}
|
||||||
ULONG Release(void) override {
|
ULONG STDMETHODCALLTYPE Release(void) override {
|
||||||
size_t ret = --m_nRefCount;
|
size_t ret = --m_nRefCount;
|
||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
delete this;
|
delete this;
|
||||||
@ -67,7 +67,7 @@ public:
|
|||||||
: m_lambda(lambda) {
|
: m_lambda(lambda) {
|
||||||
}
|
}
|
||||||
// baseT method
|
// baseT method
|
||||||
HRESULT Invoke(argTs ...args) override {
|
HRESULT STDMETHODCALLTYPE Invoke(argTs ...args) override {
|
||||||
return m_lambda(args...);
|
return m_lambda(args...);
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
@ -81,7 +81,7 @@ public:
|
|||||||
: m_ctx(ctx), m_mthd(mthd) {
|
: m_ctx(ctx), m_mthd(mthd) {
|
||||||
}
|
}
|
||||||
// baseT method
|
// baseT method
|
||||||
HRESULT Invoke(argTs ...args) override {
|
HRESULT STDMETHODCALLTYPE Invoke(argTs ...args) override {
|
||||||
return (m_ctx->*m_mthd)(args...);
|
return (m_ctx->*m_mthd)(args...);
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user