Alistair Leslie-Hughes : msado15: Set row_set point to NULL on close.

Alexandre Julliard julliard at winehq.org
Wed Dec 23 15:33:16 CST 2020


Module: wine
Branch: master
Commit: df2c595181b4d885b99a7b30da650b9f81bb3673
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=df2c595181b4d885b99a7b30da650b9f81bb3673

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Wed Dec 23 20:13:58 2020 +1100

msado15: Set row_set point to NULL on close.

Stops a crash when Close then Release is called on a Recordset.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msado15/recordset.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/msado15/recordset.c b/dlls/msado15/recordset.c
index 17200d73790..e915922fdc4 100644
--- a/dlls/msado15/recordset.c
+++ b/dlls/msado15/recordset.c
@@ -760,6 +760,7 @@ static void close_recordset( struct recordset *recordset )
     ULONG row, col, col_count;
 
     if ( recordset->row_set ) IRowset_Release( recordset->row_set );
+    recordset->row_set = NULL;
 
     if (!recordset->fields) return;
     col_count = get_column_count( recordset );




More information about the wine-cvs mailing list