infosoft: Properly return interface pointers.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2017-02-13 14:16:04 +03:00 committed by Alexandre Julliard
parent d618c0fa00
commit d71672eb4c
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ static HRESULT WINAPI infosoftcf_fnQueryInterface ( LPCLASSFACTORY iface,
if (IsEqualIID(riid, &IID_IUnknown) ||
IsEqualIID(riid, &IID_IClassFactory))
{
*ppvObj = This;
*ppvObj = &This->IClassFactory_iface;
return S_OK;
}

View File

@ -57,7 +57,7 @@ static HRESULT WINAPI wb_QueryInterface( IWordBreaker *iface,
if (IsEqualIID(riid, &IID_IUnknown) ||
IsEqualIID(riid, &IID_IWordBreaker))
{
*ppvObj = This;
*ppvObj = &This->IWordBreaker_iface;
return S_OK;
}