bits: Implemented BITS_IBackgroundCopyManager_QueryInterface (17/27)

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


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

diff --git a/dlls/qmgr/qmgr.c b/dlls/qmgr/qmgr.c
index 8bebaf6..0a826e1 100644
--- a/dlls/qmgr/qmgr.c
+++ b/dlls/qmgr/qmgr.c
@@ -39,8 +39,22 @@ static HRESULT WINAPI BITS_IBackgroundCopyManager_QueryInterface(
         REFIID riid,
         LPVOID *ppvObject)
 {
-    FIXME("Not implemented\n");
-    return E_NOTIMPL;
+    ICOM_THIS_MULTI(BackgroundCopyManagerImpl, bitsVtbl, iface);
+    TRACE("\n\tIID:\t%s\n",debugstr_guid(riid));
+
+    if (This == NULL || ppvObject == NULL)
+    {
+        return E_POINTER;
+    }
+
+    if (IsEqualGUID(riid, &IID_IUnknown) ||
+            IsEqualGUID(riid, &IID_IBackgroundCopyManager)) {
+        *ppvObject = &This->bitsVtbl;
+        BITS_IBackgroundCopyManager_AddRef(iface);
+        return S_OK;
+    }
+
+    return E_NOINTERFACE;
 }
 
 /* Release an interface to iface */
-- 
1.5.3.1




More information about the wine-patches mailing list