summaryrefslogtreecommitdiff
path: root/sot/source/sdstor/stgdir.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sot/source/sdstor/stgdir.cxx')
-rw-r--r--sot/source/sdstor/stgdir.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/sot/source/sdstor/stgdir.cxx b/sot/source/sdstor/stgdir.cxx
index 4d7068374435..4daa409f7a3a 100644
--- a/sot/source/sdstor/stgdir.cxx
+++ b/sot/source/sdstor/stgdir.cxx
@@ -309,9 +309,13 @@ INT32 StgDirEntry::GetSize()
BOOL StgDirEntry::SetSize( INT32 nNewSize )
{
- if ( !( nMode & STREAM_WRITE )
- || !bDirect && !pTmpStrm && !Strm2Tmp() )
+ if (
+ !( nMode & STREAM_WRITE ) ||
+ (!bDirect && !pTmpStrm && !Strm2Tmp())
+ )
+ {
return FALSE;
+ }
if( nNewSize < nPos )
nPos = nNewSize;