Hans Leidekker : msado15: Implement _Recordset_Open and _Recordset_Close.

Alexandre Julliard julliard at winehq.org
Thu Dec 12 16:29:43 CST 2019


Module: wine
Branch: master
Commit: 554502d6aaf29b7e1842b3384514377f0c721586
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=554502d6aaf29b7e1842b3384514377f0c721586

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Thu Dec 12 17:12:25 2019 +0100

msado15: Implement _Recordset_Open and _Recordset_Close.

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msado15/recordset.c | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/dlls/msado15/recordset.c b/dlls/msado15/recordset.c
index b214f9d077..e854b3e824 100644
--- a/dlls/msado15/recordset.c
+++ b/dlls/msado15/recordset.c
@@ -901,8 +901,13 @@ static HRESULT WINAPI recordset_CancelUpdate( _Recordset *iface )
 
 static HRESULT WINAPI recordset_Close( _Recordset *iface )
 {
-    FIXME( "%p\n", iface );
-    return E_NOTIMPL;
+    struct recordset *recordset = impl_from_Recordset( iface );
+
+    TRACE( "%p\n", recordset );
+
+    close_recordset( recordset );
+    recordset->state = adStateClosed;
+    return S_OK;
 }
 
 static HRESULT WINAPI recordset_Delete( _Recordset *iface, AffectEnum affect_records )
@@ -950,9 +955,13 @@ static HRESULT WINAPI recordset_MoveLast( _Recordset *iface )
 static HRESULT WINAPI recordset_Open( _Recordset *iface, VARIANT source, VARIANT active_connection,
                                       CursorTypeEnum cursor_type, LockTypeEnum lock_type, LONG options )
 {
-    FIXME( "%p, %s, %s, %d, %d, %d\n", iface, debugstr_variant(&source), debugstr_variant(&active_connection),
+    struct recordset *recordset = impl_from_Recordset( iface );
+
+    FIXME( "%p, %s, %s, %d, %d, %d\n", recordset, debugstr_variant(&source), debugstr_variant(&active_connection),
            cursor_type, lock_type, options );
-    return E_NOTIMPL;
+
+    recordset->state = adStateOpen;
+    return S_OK;
 }
 
 static HRESULT WINAPI recordset_Requery( _Recordset *iface, LONG options )




More information about the wine-cvs mailing list