bits: Implemented BITS_IBackgroundCopyManager_AddRef (18/27)
Roy Shea
roy at cs.hmc.edu
Fri Nov 16 18:19:48 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 0a826e1..1b85e76 100644
--- a/dlls/qmgr/qmgr.c
+++ b/dlls/qmgr/qmgr.c
@@ -29,8 +29,22 @@ WINE_DEFAULT_DEBUG_CHANNEL(qmgr);
static ULONG WINAPI BITS_IBackgroundCopyManager_AddRef(
IBackgroundCopyManager* iface)
{
- FIXME("Not implemented\n");
- return E_NOTIMPL;
+ ICOM_THIS_MULTI(BackgroundCopyManagerImpl, bitsVtbl, iface);
+ ULONG ref;
+
+ TRACE("\n");
+
+ if (This == NULL)
+ {
+ return E_POINTER;
+ }
+
+ ref = InterlockedIncrement(&This->ref);
+ if (ref == 1)
+ {
+ InterlockedIncrement(&dll_ref);
+ }
+ return ref;
}
/* Attempt to provide a new interface to interact with iface */
--
1.5.3.1
More information about the wine-patches
mailing list