msado15: Implement _Recordset_MoveNext and _Recordset_MovePrevious.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2019-12-13 15:52:28 +01:00 committed by Alexandre Julliard
parent 6f1a4fa8e2
commit 6e5c2bee06
1 changed files with 12 additions and 4 deletions

View File

@ -967,14 +967,22 @@ static HRESULT WINAPI recordset_Move( _Recordset *iface, LONG num_records, VARIA
static HRESULT WINAPI recordset_MoveNext( _Recordset *iface )
{
FIXME( "%p\n", iface );
return E_NOTIMPL;
struct recordset *recordset = impl_from_Recordset( iface );
TRACE( "%p\n", recordset );
if (recordset->index < recordset->count) recordset->index++;
return S_OK;
}
static HRESULT WINAPI recordset_MovePrevious( _Recordset *iface )
{
FIXME( "%p\n", iface );
return E_NOTIMPL;
struct recordset *recordset = impl_from_Recordset( iface );
TRACE( "%p\n", recordset );
if (recordset->index >= 0) recordset->index--;
return S_OK;
}
static HRESULT WINAPI recordset_MoveFirst( _Recordset *iface )