inkobj: Implement InkCollector_Create

John Klehm xixsimplicityxix at gmail.com
Sat Aug 25 01:03:00 CDT 2007


This patch is the same as the old one just included with the new series.

-John Klehm
-------------- next part --------------
From b1dc3506c08991ea49375d708349cb167ffd6aaa Mon Sep 17 00:00:00 2001
From: John Klehm <xixsimplicityxix at gmail.com>
Date: Sat, 25 Aug 2007 00:20:08 -0500
Subject: inkobj: Implement InkCollector_Create

---
 dlls/inkobj/inkcollector.c |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/dlls/inkobj/inkcollector.c b/dlls/inkobj/inkcollector.c
index 8ea2031..ecffbe7 100644
--- a/dlls/inkobj/inkcollector.c
+++ b/dlls/inkobj/inkcollector.c
@@ -98,8 +98,22 @@ HRESULT InkCollector_Create(IUnknown* pUnkOuter, REFIID riid, void** ppvObject)
     InkCollector* ret;
     HRESULT result = E_NOINTERFACE;
 
-    FIXME("pUnkOuter=%p, riid=%s, ppvObject=%p\n",
+    TRACE("pUnkOuter=%p, riid=%s, ppvObject=%p\n",
         pUnkOuter, debugstr_guid(riid), ppvObject);
 
+    ret = HeapAlloc(GetProcessHeap(), 0, sizeof(InkCollector));
+    ret->lpInkCollectorVtbl = &InkCollectorVtbl;
+    ret->refCount = 0;
+
+    result = IInkCollector_QueryInterface(
+        ((IInkCollector*) &(ret->lpInkCollectorVtbl)), riid, ppvObject);
+    if (FAILED(result))
+    {
+        HeapFree(GetProcessHeap(), 0, ret);
+        return result;
+    }
+
+    InterlockedIncrement(&INKOBJ_refCount);
+
     return result;
 }
-- 
1.5.1.6



More information about the wine-patches mailing list