msado15: Fix NULL pointer dereference in close_recordset.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49281
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2020-05-29 11:30:02 +02:00 committed by Alexandre Julliard
parent c2a4a4ec3c
commit fb1d46fc0a
1 changed files with 4 additions and 1 deletions

View File

@ -748,7 +748,10 @@ static ULONG WINAPI recordset_AddRef( _Recordset *iface )
static void close_recordset( struct recordset *recordset )
{
ULONG row, col, col_count = get_column_count( recordset );
ULONG row, col, col_count;
if (!recordset->fields) return;
col_count = get_column_count( recordset );
recordset->fields->recordset = NULL;
Fields_Release( &recordset->fields->Fields_iface );