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

msado15: Recordset::Open - Correctly update count/index values.

ADO can return a RecordCount of -1.
parent d9e1d419
......@@ -2104,8 +2104,8 @@ static HRESULT WINAPI recordset_Open( _Recordset *iface, VARIANT source, VARIANT
return hr;
}
recordset->count = affected;
recordset->index = affected ? 0 : -1;
recordset->count = affected > 0 ? affected : 0;
recordset->index = affected > 0 ? 0 : -1;
/*
* We can safely just return with an empty recordset here
......
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