inkobj: Implement InkCollector_QueryInterface
John Klehm
xixsimplicityxix at gmail.com
Sat Aug 25 01:03:57 CDT 2007
Same as last time, just newly diffed for this series.
-John Klehm
-------------- next part --------------
From 09ac5a9a94464fbd89d789e6b8ec900cf6a22be7 Mon Sep 17 00:00:00 2001
From: John Klehm <xixsimplicityxix at gmail.com>
Date: Sat, 25 Aug 2007 00:25:36 -0500
Subject: inkobj: Implement InkCollector_QueryInterface
---
dlls/inkobj/inkcollector.c | 21 ++++++++++++++++++++-
1 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/dlls/inkobj/inkcollector.c b/dlls/inkobj/inkcollector.c
index ecffbe7..ac76331 100644
--- a/dlls/inkobj/inkcollector.c
+++ b/dlls/inkobj/inkcollector.c
@@ -33,7 +33,26 @@ struct InkCollector
static HRESULT WINAPI InkCollector_QueryInterface(
IInkCollector* This, REFIID riid, void** ppvObject)
{
- FIXME("requested interface %s not implemented\n", debugstr_guid(riid));
+ *ppvObject = NULL;
+
+ if (IsEqualGUID(riid, &IID_IUnknown) ||
+ IsEqualGUID(riid, &IID_IClassFactory))
+ {
+ TRACE("Query: IID_IUnknown or IID_IClassFactory\n");
+ IClassFactory_AddRef((IClassFactory*)This);
+ *ppvObject = &(This->lpVtbl);
+ return S_OK;
+ }
+ else if (IsEqualGUID(&IID_IInkCollector, riid))
+ {
+ TRACE("Query: IID_IInkCollector\n");
+ IInkCollector_AddRef(This);
+ *ppvObject = &(This->lpVtbl);
+ return S_OK;
+ }
+
+ FIXME("Interface not implemented: %s\n", debugstr_guid(riid));
+
return E_NOINTERFACE;
}
--
1.5.1.6
More information about the wine-patches
mailing list