Commit 4fdcc03c authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

itss: Properly return interface pointers.

parent f6b1e123
......@@ -84,7 +84,7 @@ ITSSCF_QueryInterface(LPCLASSFACTORY iface,REFIID riid,LPVOID *ppobj)
IsEqualGUID(riid, &IID_IClassFactory))
{
IClassFactory_AddRef(iface);
*ppobj = This;
*ppobj = &This->IClassFactory_iface;
return S_OK;
}
......
......@@ -106,7 +106,7 @@ static HRESULT WINAPI ITSS_IEnumSTATSTG_QueryInterface(
|| IsEqualGUID(riid, &IID_IEnumSTATSTG))
{
IEnumSTATSTG_AddRef(iface);
*ppvObject = This;
*ppvObject = &This->IEnumSTATSTG_iface;
return S_OK;
}
......@@ -283,7 +283,7 @@ static HRESULT WINAPI ITSS_IStorageImpl_QueryInterface(
|| IsEqualGUID(riid, &IID_IStorage))
{
IStorage_AddRef(iface);
*ppvObject = This;
*ppvObject = &This->IStorage_iface;
return S_OK;
}
......@@ -666,7 +666,7 @@ static HRESULT WINAPI ITSS_IStream_QueryInterface(
|| IsEqualGUID(riid, &IID_IStream))
{
IStream_AddRef(iface);
*ppvObject = This;
*ppvObject = &This->IStream_iface;
return S_OK;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment