Commit 8a4e235e authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

msado15: Move to newly created row in Recordset::AddNew.

It's valid to have a recordset with existing rows. AddNew needs to move to newly created row, so existing won't be used.
parent 0d3ff192
......@@ -1587,7 +1587,7 @@ static HRESULT WINAPI recordset_AddNew( _Recordset *iface, VARIANT field_list, V
if (recordset->state == adStateClosed) return MAKE_ADO_HRESULT( adErrObjectClosed );
if (!resize_recordset( recordset, recordset->count + 1 )) return E_OUTOFMEMORY;
recordset->index++;
recordset->index = recordset->count - 1;
recordset->editmode = adEditAdd;
return S_OK;
}
......
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