[Libreoffice-commits] core.git: oox/source
Caolán McNamara
caolanm at redhat.com
Wed Mar 22 22:18:55 UTC 2017
oox/source/ole/olehelper.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit a271321ab7d66eab007f998237e7fb09dd5c9bf7
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Mar 22 21:14:55 2017 +0000
crashtesting: these should be opened readonly
Change-Id: I99f6e06955d05688aba95a6f1246078b3ecd7772
diff --git a/oox/source/ole/olehelper.cxx b/oox/source/ole/olehelper.cxx
index b32e69620283..cfc7966eb892 100644
--- a/oox/source/ole/olehelper.cxx
+++ b/oox/source/ole/olehelper.cxx
@@ -518,13 +518,13 @@ bool MSConvertOCXControls::ReadOCXStorage( tools::SvRef<SotStorage>& xOleStg,
{
if ( xOleStg.is() )
{
- tools::SvRef<SotStorageStream> pNameStream = xOleStg->OpenSotStream( "\3OCXNAME");
+ tools::SvRef<SotStorageStream> pNameStream = xOleStg->OpenSotStream("\3OCXNAME", StreamMode::READ);
BinaryXInputStream aNameStream( Reference< XInputStream >( new utl::OSeekableInputStreamWrapper( *pNameStream ) ), true );
- tools::SvRef<SotStorageStream> pContents = xOleStg->OpenSotStream( "contents");
+ tools::SvRef<SotStorageStream> pContents = xOleStg->OpenSotStream("contents", StreamMode::READ);
BinaryXInputStream aInStrm( Reference< XInputStream >( new utl::OSeekableInputStreamWrapper( *pContents ) ), true );
- tools::SvRef<SotStorageStream> pClsStrm = xOleStg->OpenSotStream("\1CompObj");
+ tools::SvRef<SotStorageStream> pClsStrm = xOleStg->OpenSotStream("\1CompObj", StreamMode::READ);
BinaryXInputStream aClsStrm( Reference< XInputStream >( new utl::OSeekableInputStreamWrapper(*pClsStrm ) ), true );
aClsStrm.skip(12);
More information about the Libreoffice-commits
mailing list