itss: 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
f6b1e1235c
commit
4fdcc03cf8
|
@ -84,7 +84,7 @@ ITSSCF_QueryInterface(LPCLASSFACTORY iface,REFIID riid,LPVOID *ppobj)
|
||||||
IsEqualGUID(riid, &IID_IClassFactory))
|
IsEqualGUID(riid, &IID_IClassFactory))
|
||||||
{
|
{
|
||||||
IClassFactory_AddRef(iface);
|
IClassFactory_AddRef(iface);
|
||||||
*ppobj = This;
|
*ppobj = &This->IClassFactory_iface;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -106,7 +106,7 @@ static HRESULT WINAPI ITSS_IEnumSTATSTG_QueryInterface(
|
||||||
|| IsEqualGUID(riid, &IID_IEnumSTATSTG))
|
|| IsEqualGUID(riid, &IID_IEnumSTATSTG))
|
||||||
{
|
{
|
||||||
IEnumSTATSTG_AddRef(iface);
|
IEnumSTATSTG_AddRef(iface);
|
||||||
*ppvObject = This;
|
*ppvObject = &This->IEnumSTATSTG_iface;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -283,7 +283,7 @@ static HRESULT WINAPI ITSS_IStorageImpl_QueryInterface(
|
||||||
|| IsEqualGUID(riid, &IID_IStorage))
|
|| IsEqualGUID(riid, &IID_IStorage))
|
||||||
{
|
{
|
||||||
IStorage_AddRef(iface);
|
IStorage_AddRef(iface);
|
||||||
*ppvObject = This;
|
*ppvObject = &This->IStorage_iface;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -666,7 +666,7 @@ static HRESULT WINAPI ITSS_IStream_QueryInterface(
|
||||||
|| IsEqualGUID(riid, &IID_IStream))
|
|| IsEqualGUID(riid, &IID_IStream))
|
||||||
{
|
{
|
||||||
IStream_AddRef(iface);
|
IStream_AddRef(iface);
|
||||||
*ppvObject = This;
|
*ppvObject = &This->IStream_iface;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue