Commit 435d0924 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msado15: Implement _Recordset_get_State.

parent 7fce7580
......@@ -1075,8 +1075,12 @@ static HRESULT WINAPI recordset_get_Status( _Recordset *iface, LONG *status )
static HRESULT WINAPI recordset_get_State( _Recordset *iface, LONG *state )
{
FIXME( "%p, %p\n", iface, state );
return E_NOTIMPL;
struct recordset *recordset = impl_from_Recordset( iface );
TRACE( "%p, %p\n", recordset, state );
*state = recordset->state;
return S_OK;
}
static HRESULT WINAPI recordset__xClone( _Recordset *iface, _Recordset **obj )
......
......@@ -100,8 +100,8 @@ static void test_Recordset(void)
state = -1;
hr = _Recordset_get_State( recordset, &state );
todo_wine ok( hr == S_OK, "got %08x\n", hr );
todo_wine ok( state == adStateClosed, "got %d\n", state );
ok( hr == S_OK, "got %08x\n", hr );
ok( state == adStateClosed, "got %d\n", state );
VariantInit( &missing );
hr = _Recordset_AddNew( recordset, missing, missing );
......@@ -125,8 +125,8 @@ static void test_Recordset(void)
state = -1;
hr = _Recordset_get_State( recordset, &state );
todo_wine ok( hr == S_OK, "got %08x\n", hr );
todo_wine ok( state == adStateOpen, "got %d\n", state );
ok( hr == S_OK, "got %08x\n", hr );
ok( state == adStateOpen, "got %d\n", state );
hr = _Recordset_AddNew( recordset, missing, missing );
ok( hr == S_OK, "got %08x\n", hr );
......@@ -134,6 +134,11 @@ static void test_Recordset(void)
hr = _Recordset_Close( recordset );
ok( hr == S_OK, "got %08x\n", hr );
state = -1;
hr = _Recordset_get_State( recordset, &state );
ok( hr == S_OK, "got %08x\n", hr );
ok( state == adStateClosed, "got %d\n", state );
Fields_Release( fields );
_Recordset_Release( recordset );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment