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:
parent
c2a4a4ec3c
commit
fb1d46fc0a
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue