Hans Leidekker : msi: Allow overwriting an existing stream in STREAMS_set_row.

Alexandre Julliard julliard at winehq.org
Thu Feb 4 11:11:02 CST 2010


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Thu Feb  4 10:01:56 2010 +0100

msi: Allow overwriting an existing stream in STREAMS_set_row.

---

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

diff --git a/dlls/msi/streams.c b/dlls/msi/streams.c
index 13dc7fa..bdb2e2c 100644
--- a/dlls/msi/streams.c
+++ b/dlls/msi/streams.c
@@ -182,6 +182,7 @@ static UINT STREAMS_set_row(struct tagMSIVIEW *view, UINT row, MSIRECORD *rec, U
     }
 
     encname = encode_streamname(FALSE, name);
+    IStorage_DestroyElement(sv->db->storage, encname);
 
     r = write_stream_data(sv->db->storage, name, data, count, FALSE);
     if (r != ERROR_SUCCESS)




More information about the wine-cvs mailing list