itss: Call interface methods properly.

oldstable
Nikolay Sivov 2012-08-19 19:48:22 +04:00 committed by Alexandre Julliard
parent fa4148d2ae
commit 316ca9edac
2 changed files with 6 additions and 6 deletions

View File

@ -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;
}

View File

@ -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;
}