Commit fb1d46fc authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msado15: Fix NULL pointer dereference in close_recordset.

parent c2a4a4ec
......@@ -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 );
......
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