hlink: 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:03 +03:00 committed by Alexandre Julliard
parent a525b69781
commit f6b1e1235c
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -129,7 +129,7 @@ static HRESULT WINAPI IHlink_fnQueryInterface(IHlink* iface, REFIID riid,
*ppvObj = NULL;
if (IsEqualIID(riid, &IID_IUnknown) || (IsEqualIID(riid, &IID_IHlink)))
*ppvObj = This;
*ppvObj = &This->IHlink_iface;
else if (IsEqualIID(riid, &IID_IPersistStream))
*ppvObj = &This->IPersistStream_iface;
else if (IsEqualIID(riid, &IID_IDataObject))