Nikolay Sivov : itss: Call interface methods properly.

Alexandre Julliard julliard at winehq.org
Mon Aug 20 14:16:17 CDT 2012


Module: wine
Branch: master
Commit: 316ca9edacfb56bfa2d8157de99e3929f1446312
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=316ca9edacfb56bfa2d8157de99e3929f1446312

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sun Aug 19 19:48:22 2012 +0400

itss: Call interface methods properly.

---

 dlls/itss/itss.c    |    4 ++--
 dlls/itss/moniker.c |    8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/itss/itss.c b/dlls/itss/itss.c
index fc2eb37..94687d8 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 02edd49..dedf4e5 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;
     }
 




More information about the wine-cvs mailing list