msi: Allow overwriting an existing stream in STREAMS_set_row.

This commit is contained in:
Hans Leidekker 2010-02-04 10:01:56 +01:00 committed by Alexandre Julliard
parent dcbe0fdff2
commit c1940c1c5f
1 changed files with 1 additions and 0 deletions

View File

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