msado15: Only support put CursorLocation on Closed Recordset.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2021-01-15 18:22:13 +11:00 committed by Alexandre Julliard
parent 8eabf58dee
commit 44501a2781
1 changed files with 2 additions and 0 deletions

View File

@ -1279,6 +1279,8 @@ static HRESULT WINAPI recordset_put_CursorLocation( _Recordset *iface, CursorLoc
TRACE( "%p, %u\n", iface, cursor_loc );
if (recordset->state == adStateOpen) return MAKE_ADO_HRESULT( adErrObjectOpen );
recordset->cursor_location = cursor_loc;
return S_OK;