diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-11-29 16:02:37 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-12-06 20:30:30 +0100 |
commit | f4db108fd77b3e7359e6ad57ffc989aa2f31b2d2 (patch) | |
tree | be916e4c10f610739ab3969ff43995a1c4160d49 /libmsi/streams.c | |
parent | c65374371388780b01a2db999ecd3bc0e375b7c4 (diff) | |
download | msitools-f4db108fd77b3e7359e6ad57ffc989aa2f31b2d2.tar.gz msitools-f4db108fd77b3e7359e6ad57ffc989aa2f31b2d2.tar.xz msitools-f4db108fd77b3e7359e6ad57ffc989aa2f31b2d2.zip |
wine bug: do not doubly encode the stream name
Diffstat (limited to 'libmsi/streams.c')
-rw-r--r-- | libmsi/streams.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/libmsi/streams.c b/libmsi/streams.c index 2f0d4ec..ee8ba25 100644 --- a/libmsi/streams.c +++ b/libmsi/streams.c @@ -464,7 +464,6 @@ static int add_streams_to_table(LibmsiStreamSVIEW *sv) STREAM *stream = NULL; HRESULT hr; unsigned r, count = 0, size; - WCHAR *encname; hr = IStorage_EnumElements(sv->db->storage, 0, NULL, 0, &stgenum); if (FAILED(hr)) @@ -503,17 +502,7 @@ static int add_streams_to_table(LibmsiStreamSVIEW *sv) break; } - /* these streams appear to be unencoded */ - if (*stat.pwcsName == 0x0005) - { - r = msi_get_raw_stream(sv->db, stat.pwcsName, &stream->stream); - } - else - { - encname = encode_streamname(false, stat.pwcsName); - r = msi_get_raw_stream(sv->db, encname, &stream->stream); - msi_free(encname); - } + r = msi_get_raw_stream(sv->db, stat.pwcsName, &stream->stream); CoTaskMemFree(stat.pwcsName); if (r != ERROR_SUCCESS) |