From a271321ab7d66eab007f998237e7fb09dd5c9bf7 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 22 Mar 2017 21:14:55 +0000 Subject: crashtesting: these should be opened readonly Change-Id: I99f6e06955d05688aba95a6f1246078b3ecd7772 --- oox/source/ole/olehelper.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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& xOleStg, { if ( xOleStg.is() ) { - tools::SvRef pNameStream = xOleStg->OpenSotStream( "\3OCXNAME"); + tools::SvRef pNameStream = xOleStg->OpenSotStream("\3OCXNAME", StreamMode::READ); BinaryXInputStream aNameStream( Reference< XInputStream >( new utl::OSeekableInputStreamWrapper( *pNameStream ) ), true ); - tools::SvRef pContents = xOleStg->OpenSotStream( "contents"); + tools::SvRef pContents = xOleStg->OpenSotStream("contents", StreamMode::READ); BinaryXInputStream aInStrm( Reference< XInputStream >( new utl::OSeekableInputStreamWrapper( *pContents ) ), true ); - tools::SvRef pClsStrm = xOleStg->OpenSotStream("\1CompObj"); + tools::SvRef pClsStrm = xOleStg->OpenSotStream("\1CompObj", StreamMode::READ); BinaryXInputStream aClsStrm( Reference< XInputStream >( new utl::OSeekableInputStreamWrapper(*pClsStrm ) ), true ); aClsStrm.skip(12); -- cgit