diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-19 08:59:35 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-19 09:01:09 +0100 |
commit | 83991055eed93bb0ad96e3690062798a57df6c74 (patch) | |
tree | 553262f42c0b6d03b9302ca89bc1f08d918dbfca /writerperfect | |
parent | 341d9c4f089c4e8dee96c49a81abf24ab809f367 (diff) |
can actually manage to ask createStream for missing streams
writerperfect::(anonymous namespace)::OLEStorageImpl::createStream(rtl::OUString const&) (WPXSvInputStream.cxx:260)
writerperfect::WPXSvInputStreamImpl::getSubStreamByName(char const*) (WPXSvInputStream.cxx:201)
MWAWInputStream::unzipStream()
MWAWInputStream::MWAWInputStream
valgrind + bff
Change-Id: Iaecb8b7f05ed4369ddd37b34166dc3c3388ffb4d
Diffstat (limited to 'writerperfect')
-rw-r--r-- | writerperfect/source/common/WPXSvInputStream.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/writerperfect/source/common/WPXSvInputStream.cxx b/writerperfect/source/common/WPXSvInputStream.cxx index 264dcc83515c..1f8d57543186 100644 --- a/writerperfect/source/common/WPXSvInputStream.cxx +++ b/writerperfect/source/common/WPXSvInputStream.cxx @@ -253,9 +253,8 @@ SotStorageStreamRef OLEStorageImpl::createStream(const rtl::OUString &rPath) const OLEStorageMap_t::const_iterator aIt = maStorageMap.find(aDir); - // We can only get there for paths that are present in the OLE. - // Which means the storage must exist. - assert(maStorageMap.end() != aIt); + if (maStorageMap.end() == aIt) + return 0; return aIt->second.ref->OpenSotStream(aName, STREAM_STD_READ); } |