Module: wine Branch: master Commit: c1940c1c5f19d83ed24c0f6472afbe9ec238ea28 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c1940c1c5f19d83ed24c0f6472...
Author: Hans Leidekker hans@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)