Mike McCormack : msi: An empty string table entry should always have a zero refcount.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Oct 12 05:46:37 CDT 2006


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

Author: Mike McCormack <mike at codeweavers.com>
Date:   Wed Oct 11 19:16:09 2006 +0900

msi: An empty string table entry should always have a zero refcount.

---

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

diff --git a/dlls/msi/table.c b/dlls/msi/table.c
index 38697aa..26c0cc1 100644
--- a/dlls/msi/table.c
+++ b/dlls/msi/table.c
@@ -804,7 +804,10 @@ static UINT save_string_table( MSIDATABA
         if( sz && (sz < (datasize - used ) ) )
             sz--;
 
-        pool[ n*2 + 1 ] = msi_id_refcount( db->strings, i );
+        if (sz)
+            pool[ n*2 + 1 ] = msi_id_refcount( db->strings, i );
+        else
+            pool[ n*2 + 1 ] = 0;
         if (sz < 0x10000)
         {
             pool[ n*2 ] = sz;




More information about the wine-cvs mailing list