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:
parent
a525b69781
commit
f6b1e1235c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue