inkobj: Implement InkCollector _AddRef and _Release
John Klehm
xixsimplicityxix at gmail.com
Sat Aug 25 01:05:15 CDT 2007
Same as before.
-John Klehm
-------------- next part --------------
From 17a8c055861fb08e131a51a8195ba3da9a588606 Mon Sep 17 00:00:00 2001
From: John Klehm <xixsimplicityxix at gmail.com>
Date: Sat, 25 Aug 2007 00:29:14 -0500
Subject: inkobj: Implement InkCollector _AddRef and _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 ac76331..4ce49cd 100644
--- a/dlls/inkobj/inkcollector.c
+++ b/dlls/inkobj/inkcollector.c
@@ -59,15 +59,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