inkobj: Implement InkCollector _AddRef and _Release
John Klehm
xixsimplicityxix at gmail.com
Fri Aug 24 03:21:20 CDT 2007
These functions are part of the IUnknown and who doesn't love the
unknown. How exciting.
-John Klehm
-------------- next part --------------
From a65154c3e51d1e1634880490465b751df92510ab Mon Sep 17 00:00:00 2001
From: John Klehm <xixsimplicityxix at gmail.com>
Date: Fri, 24 Aug 2007 02:21:19 -0500
Subject: inkobj: Implement InkCollector_AddRef and InkCollector_Release
---
dlls/inkobj/inkcollector.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/dlls/inkobj/inkcollector.c b/dlls/inkobj/inkcollector.c
index 53aec0c..26d35c4 100644
--- a/dlls/inkobj/inkcollector.c
+++ b/dlls/inkobj/inkcollector.c
@@ -49,15 +49,17 @@ static HRESULT WINAPI InkCollector_QueryInterface(
static ULONG WINAPI InkCollector_AddRef(
IInkCollector* This)
{
- FIXME("stub!\n");
- return 0;
+ TRACE("refCount=%i before increment\n", ((InkCollector*)This)->refCount);
+
+ return InterlockedIncrement(&( ((InkCollector*)This)->refCount ));
}
static ULONG WINAPI InkCollector_Release(
IInkCollector* This)
{
- FIXME("stub!\n");
- return 0;
+ TRACE("refCount=%i before decrement\n", ((InkCollector*)This)->refCount);
+
+ return InterlockedDecrement(&( ((InkCollector*)This)->refCount ));
}
static HRESULT WINAPI InkCollector_GetTypeInfoCount(
--
1.5.1.6
More information about the wine-patches
mailing list