diff options
author | Mathias Bauer <mba@openoffice.org> | 2001-11-13 09:31:51 +0000 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2001-11-13 09:31:51 +0000 |
commit | 3406cc852d8fac3aa1fedadd5ce936d72ef681eb (patch) | |
tree | c17c1c1c4882d52f5af67600b7e707cdb950be4e /sot/source/sdstor/stg.cxx | |
parent | 7f4eb4e70df6b1cef541447e57d7cfd0dc1231a5 (diff) |
#92268#: support individually encrypted streams
Diffstat (limited to 'sot/source/sdstor/stg.cxx')
-rw-r--r-- | sot/source/sdstor/stg.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sot/source/sdstor/stg.cxx b/sot/source/sdstor/stg.cxx index f5b168f2237a..e663de84e161 100644 --- a/sot/source/sdstor/stg.cxx +++ b/sot/source/sdstor/stg.cxx @@ -2,9 +2,9 @@ * * $RCSfile: stg.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: mba $ $Date: 2001-02-26 16:16:55 $ + * last change: $Author: mba $ $Date: 2001-11-13 10:31:51 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -625,8 +625,10 @@ BaseStorage* Storage::OpenStorage( const String& rName, StreamMode m, BOOL bDire // Open a stream -BaseStorageStream* Storage::OpenStream( const String& rName, StreamMode m, BOOL ) +BaseStorageStream* Storage::OpenStream( const String& rName, StreamMode m, BOOL, const ByteString* pB ) { + DBG_ASSERT(!pB, "Encryption not supported"); + if( !Validate() || !ValidateMode( m ) ) return new StorageStream( pIo, NULL, m ); StgDirEntry* p = pIo->pTOC->Find( *pEntry, rName ); |