diff --git a/dlls/itss/itss.c b/dlls/itss/itss.c index fc2eb37d31c..94687d8753f 100644 --- a/dlls/itss/itss.c +++ b/dlls/itss/itss.c @@ -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; } diff --git a/dlls/itss/moniker.c b/dlls/itss/moniker.c index 02edd49d268..dedf4e56e76 100644 --- a/dlls/itss/moniker.c +++ b/dlls/itss/moniker.c @@ -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; }