diff --git a/dlls/msimtf/activeimmapp.c b/dlls/msimtf/activeimmapp.c index 574973529b6..313cd8c9506 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; }