summaryrefslogtreecommitdiff
path: root/embedserv
diff options
context:
space:
mode:
authorMikhail Voitenko <mav@openoffice.org>2003-03-10 15:09:29 +0000
committerMikhail Voitenko <mav@openoffice.org>2003-03-10 15:09:29 +0000
commita9977a16d1ba52368d70d82f11e24e1b12aed7d0 (patch)
tree2d1e684f1e43613417fc13457bfa0273e9ca845c /embedserv
parent410f4bb81627bf6741e270fabcd4a4ba2fb6c5f1 (diff)
#i2822# fix stream openmode
Diffstat (limited to 'embedserv')
-rwxr-xr-xembedserv/source/embed/ed_ipersiststr.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/embedserv/source/embed/ed_ipersiststr.cxx b/embedserv/source/embed/ed_ipersiststr.cxx
index f8d8dafe7a17..95d61ed015ed 100755
--- a/embedserv/source/embed/ed_ipersiststr.cxx
+++ b/embedserv/source/embed/ed_ipersiststr.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ed_ipersiststr.cxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: mav $ $Date: 2003-03-05 15:50:10 $
+ * last change: $Author: mav $ $Date: 2003-03-10 16:09:29 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -224,6 +224,7 @@ EmbedDocument_Impl::EmbedDocument_Impl( const uno::Reference< lang::XMultiServic
, m_xFactory( xFactory )
, m_guid( *guid )
, m_bIsDirty( sal_False )
+, m_nAdviseNum( 0 )
{
}
@@ -420,7 +421,7 @@ STDMETHODIMP EmbedDocument_Impl::InitNew( IStorage *pStg )
if ( hr == S_OK )
{
hr = pStg->CreateStream( aOfficeEmbedStreamName,
- STGM_CREATE | nStreamMode,
+ STGM_CREATE | ( nStreamMode & 0x73 ),
0,
0,
&m_pOwnStream );
@@ -472,7 +473,7 @@ STDMETHODIMP EmbedDocument_Impl::Load( IStorage *pStg )
DWORD nStreamMode = aStat.grfMode;
hr = pStg->OpenStream( aOfficeEmbedStreamName,
0,
- nStreamMode,
+ nStreamMode & 0x73,
0,
&m_pOwnStream );
if ( FAILED( hr ) || !m_pOwnStream ) return E_FAIL;