Rob Shearman : msi: Remove the hash table for a column when one of its values is modified since it will now be invalid .

Alexandre Julliard julliard at wine.codeweavers.com
Tue Apr 24 07:24:00 CDT 2007


Module: wine
Branch: master
Commit: 94d48238ffe8edc3778f71b3467100c9beff0a33
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=94d48238ffe8edc3778f71b3467100c9beff0a33

Author: Rob Shearman <rob at codeweavers.com>
Date:   Mon Apr 23 08:19:07 2007 +0100

msi: Remove the hash table for a column when one of its values is modified since it will now be invalid.

---

 dlls/msi/table.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/msi/table.c b/dlls/msi/table.c
index 1f8e118..2e83477 100644
--- a/dlls/msi/table.c
+++ b/dlls/msi/table.c
@@ -996,6 +996,9 @@ static UINT TABLE_set_int( MSITABLEVIEW *tv, UINT row, UINT col, UINT val )
         return ERROR_FUNCTION_FAILED;
     }
 
+    msi_free( tv->columns[col-1].hash_table );
+    tv->columns[col-1].hash_table = NULL;
+
     n = bytes_per_column( &tv->columns[col-1] );
     switch( n )
     {




More information about the wine-cvs mailing list