inkobj: Implment DllGetClassObject

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


This patch is the same as before except in this new series the
inkobj.c is different at this point preventing the old patch from
applying cleanly.

-John Klehm
-------------- next part --------------
From 260b8e884c1018b4ae0d01903fdf33505f7246fe Mon Sep 17 00:00:00 2001
From: John Klehm <xixsimplicityxix at gmail.com>
Date: Sat, 25 Aug 2007 00:14:55 -0500
Subject: inkobj: Implement DllGetClassObject

---
 dlls/inkobj/inkobj.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/dlls/inkobj/inkobj.c b/dlls/inkobj/inkobj.c
index 5789636..4683b54 100644
--- a/dlls/inkobj/inkobj.c
+++ b/dlls/inkobj/inkobj.c
@@ -52,8 +52,15 @@ HRESULT WINAPI DllCanUnloadNow(void)
 /*****************************************************
  *    DllGetClassObject [INKOBJ.@]
  */
-HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
+HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppvObject)
 {
-    FIXME("Not implemented. Requested class was:%s\n", debugstr_guid(rclsid));
+    if (IsEqualCLSID(rclsid, &CLSID_InkCollector))
+    {
+        TRACE("CLSID_InkCollector %s %p\n", debugstr_guid(riid), ppvObject);
+        return ClassFactory_Create(riid, ppvObject, InkCollector_Create);
+    }
+
+    FIXME("Class not implemented: %s\n", debugstr_guid(rclsid));
+    *ppvObject = NULL;
     return CLASS_E_CLASSNOTAVAILABLE;
 }
-- 
1.5.1.6



More information about the wine-patches mailing list