[PATCH] msi: Skip the special SummaryInformation stream in msi_commit_streams.
Hans Leidekker
hans at codeweavers.com
Mon Mar 11 09:46:54 CDT 2019
Avoids adding a useless table stream when called on an existing database.
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
---
dlls/msi/streams.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/msi/streams.c b/dlls/msi/streams.c
index 6565b3d4c4..dae1d971c4 100644
--- a/dlls/msi/streams.c
+++ b/dlls/msi/streams.c
@@ -616,7 +616,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 ))
--
2.20.1
More information about the wine-devel
mailing list