Kaydet (Commit) 83991055 authored tarafından Caolán McNamara's avatar Caolán McNamara

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)

valgrind + bff

Change-Id: Iaecb8b7f05ed4369ddd37b34166dc3c3388ffb4d
üst 341d9c4f
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment