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:
Alistair Leslie-Hughes 2022-01-20 13:08:28 +11:00 committed by Alexandre Julliard
parent 9af18c48cf
commit 6a9eaa619c
1 changed files with 1 additions and 1 deletions

View File

@ -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);