Hans Leidekker : msi: Skip the special SummaryInformation stream in msi_commit_streams.

Alexandre Julliard julliard at winehq.org
Mon Mar 11 16:29:53 CDT 2019


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Mon Mar 11 15:46:54 2019 +0100

msi: Skip the special SummaryInformation stream in msi_commit_streams.

Avoids adding a useless table stream when called on an existing database.

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msi/streams.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/msi/streams.c b/dlls/msi/streams.c
index bc02fb2..cfce816 100644
--- a/dlls/msi/streams.c
+++ b/dlls/msi/streams.c
@@ -592,7 +592,10 @@ UINT msi_commit_streams( MSIDATABASE *db )
     for (i = 0; i < db->num_streams; i++)
     {
         name = msi_string_lookup( db->strings, db->streams[i].str_index, NULL );
+        if (!strcmpW( name, szSumInfo )) continue;
+
         if (!(encname = encode_streamname( FALSE, name ))) return ERROR_OUTOFMEMORY;
+        TRACE("saving stream %s as %s\n", debugstr_w(name), debugstr_w(encname));
 
         hr = IStorage_CreateStream( db->storage, encname, STGM_WRITE|STGM_SHARE_EXCLUSIVE, 0, 0, &stream );
         if (SUCCEEDED( hr ))




More information about the wine-cvs mailing list