bits: Updated ClassFactory to use the This pointer to return an interface to itself (16/27)

Roy Shea roy at cs.hmc.edu
Fri Nov 16 18:19:22 CST 2007


---
 dlls/qmgr/factory.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/qmgr/factory.c b/dlls/qmgr/factory.c
index a418105..aa34bbf 100644
--- a/dlls/qmgr/factory.c
+++ b/dlls/qmgr/factory.c
@@ -66,7 +66,7 @@ static HRESULT WINAPI BITS_IClassFactory_QueryInterface(
     if (IsEqualGUID(riid, &IID_IUnknown) ||
             IsEqualGUID(riid, &IID_IClassFactory))
     {
-        *ppvObj = (LPVOID)iface;
+        *ppvObj = &This->lpVtbl;
         BITS_IClassFactory_AddRef(iface);
         return S_OK;
     }
-- 
1.5.3.1




More information about the wine-patches mailing list