msado15: Return early if Execute doesn't return a rowset.
Not all queries return a rowset, eg delete from .... In these cases, there isn't anything else to be done. Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9af18c48cf
commit
6a9eaa619c
|
@ -1531,7 +1531,7 @@ static HRESULT WINAPI recordset_Open( _Recordset *iface, VARIANT source, VARIANT
|
|||
|
||||
hr = ICommandText_Execute(command_text, NULL, &IID_IUnknown, NULL, &affected, &rowset);
|
||||
ICommandText_Release(command_text);
|
||||
if (FAILED(hr))
|
||||
if (FAILED(hr) || !rowset)
|
||||
return hr;
|
||||
|
||||
ADORecordsetConstruction_put_Rowset(&recordset->ADORecordsetConstruction_iface, rowset);
|
||||
|
|
Loading…
Reference in New Issue