From 23993e205c3c90bff349c0aecabc6861ba64f8be Mon Sep 17 00:00:00 2001 From: winesync Date: Sun, 13 Mar 2022 00:42:59 +0100 Subject: [PATCH] [WINESYNC] 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 Signed-off-by: Alexandre Julliard wine commit id 02a25a9d4fb170755d8de7aa7cb5d388c206b337 by Hans Leidekker --- dll/win32/msi/streams.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dll/win32/msi/streams.c b/dll/win32/msi/streams.c index 6565b3d4c40..dae1d971c4d 100644 --- a/dll/win32/msi/streams.c +++ b/dll/win32/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 ))