Nikolay Sivov : oledb32: Report IRowPositionChange as supported sink type.

Alexandre Julliard julliard at winehq.org
Thu Aug 22 14:18:41 CDT 2013


Module: wine
Branch: master
Commit: 2139a402c74ad3e338fce343e621c65fc0365152
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2139a402c74ad3e338fce343e621c65fc0365152

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Thu Aug 22 14:23:21 2013 +0400

oledb32: Report IRowPositionChange as supported sink type.

---

 dlls/oledb32/rowpos.c |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/dlls/oledb32/rowpos.c b/dlls/oledb32/rowpos.c
index 96a36a5..3461842 100644
--- a/dlls/oledb32/rowpos.c
+++ b/dlls/oledb32/rowpos.c
@@ -21,6 +21,7 @@
 
 #include "windef.h"
 #include "ole2.h"
+#include "olectl.h"
 
 #include "oledb.h"
 #include "oledberr.h"
@@ -194,8 +195,20 @@ static HRESULT WINAPI cpc_EnumConnectionPoints(IConnectionPointContainer *iface,
 static HRESULT WINAPI cpc_FindConnectionPoint(IConnectionPointContainer *iface, REFIID riid, IConnectionPoint **point)
 {
     rowpos *This = impl_from_IConnectionPointContainer(iface);
-    FIXME("(%p)->(%s %p): stub\n", This, debugstr_guid(riid), point);
-    return E_NOTIMPL;
+
+    TRACE("(%p)->(%s %p)\n", This, debugstr_guid(riid), point);
+
+    if (IsEqualIID(riid, &IID_IRowPositionChange))
+    {
+        *point = &This->cp.IConnectionPoint_iface;
+        IConnectionPoint_AddRef(*point);
+        return S_OK;
+    }
+    else
+    {
+        FIXME("unsupported riid %s\n", debugstr_guid(riid));
+        return CONNECT_E_NOCONNECTION;
+    }
 }
 
 static const struct IConnectionPointContainerVtbl rowpos_cpc_vtbl =




More information about the wine-cvs mailing list