[05/10] msi: Allow overwriting an existing stream in STREAMS_set_row.

Hans Leidekker hans at codeweavers.com
Thu Feb 4 03:01:56 CST 2010


---
 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)
-- 
1.6.3.3





More information about the wine-patches mailing list