Commit 316ca9ed authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

itss: Call interface methods properly.

parent fa4148d2
......@@ -196,8 +196,8 @@ static HRESULT WINAPI ITStorageImpl_QueryInterface(
if (IsEqualGUID(riid, &IID_IUnknown)
|| IsEqualGUID(riid, &IID_IITStorage))
{
IClassFactory_AddRef(iface);
*ppvObject = This;
IITStorage_AddRef(iface);
*ppvObject = iface;
return S_OK;
}
......
......@@ -65,8 +65,8 @@ static HRESULT WINAPI ITS_IMonikerImpl_QueryInterface(
if (IsEqualGUID(riid, &IID_IUnknown)
|| IsEqualGUID(riid, &IID_IParseDisplayName))
{
IClassFactory_AddRef(iface);
*ppvObject = This;
IMoniker_AddRef(iface);
*ppvObject = iface;
return S_OK;
}
......@@ -395,8 +395,8 @@ static HRESULT WINAPI ITS_IParseDisplayNameImpl_QueryInterface(
if (IsEqualGUID(riid, &IID_IUnknown)
|| IsEqualGUID(riid, &IID_IParseDisplayName))
{
IClassFactory_AddRef(iface);
*ppvObject = This;
IParseDisplayName_AddRef(iface);
*ppvObject = 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