[PATCH] bits: Added implementation of BITS_IClassFactory_Release (8/12)
Roy Shea
roy at cs.hmc.edu
Thu Nov 15 10:23:51 CST 2007
---
dlls/qmgr/factory.c | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/dlls/qmgr/factory.c b/dlls/qmgr/factory.c
index 510f566..70e548f 100644
--- a/dlls/qmgr/factory.c
+++ b/dlls/qmgr/factory.c
@@ -76,8 +76,19 @@ static HRESULT WINAPI BITS_IClassFactory_QueryInterface(
static ULONG WINAPI BITS_IClassFactory_Release(LPCLASSFACTORY iface)
{
- FIXME("Not implemented\n");
- return E_NOTIMPL;
+ ICOM_THIS_MULTI(ClassFactoryImpl, classFactoryVtbl, iface);
+ ULONG ref;
+
+ TRACE("\n");
+
+ if (This == NULL) return E_POINTER;
+
+ ref = InterlockedDecrement(&This->ref);
+ if (ref == 0) {
+ HeapFree(GetProcessHeap(), 0, This);
+ InterlockedDecrement(&dll_ref);
+ }
+ return ref;
}
static HRESULT WINAPI BITS_IClassFactory_CreateInstance(
--
1.5.3.1
More information about the wine-patches
mailing list