[PATCH] msimtf: Return interface pointers
Nikolay Sivov
nsivov at codeweavers.com
Wed Aug 31 19:18:53 CDT 2016
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/msimtf/activeimmapp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msimtf/activeimmapp.c b/dlls/msimtf/activeimmapp.c
index 5749735..313cd8c 100644
--- a/dlls/msimtf/activeimmapp.c
+++ b/dlls/msimtf/activeimmapp.c
@@ -65,7 +65,7 @@ static HRESULT WINAPI ActiveIMMApp_QueryInterface (IActiveIMMApp* iface,
if (IsEqualIID(iid, &IID_IUnknown) || IsEqualIID(iid, &IID_IActiveIMMApp))
{
- *ppvOut = This;
+ *ppvOut = &This->IActiveIMMApp_iface;
}
else if (IsEqualIID(iid, &IID_IActiveIMMMessagePumpOwner))
{
@@ -906,6 +906,6 @@ DECLSPEC_HIDDEN HRESULT ActiveIMMApp_Constructor(IUnknown *pUnkOuter, IUnknown *
This->refCount = 1;
TRACE("returning %p\n",This);
- *ppOut = (IUnknown *)This;
+ *ppOut = (IUnknown *)&This->IActiveIMMApp_iface;
return S_OK;
}
--
2.9.3
More information about the wine-patches
mailing list