diff options
Diffstat (limited to 'sot/source/sdstor/stgcache.cxx')
-rw-r--r-- | sot/source/sdstor/stgcache.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sot/source/sdstor/stgcache.cxx b/sot/source/sdstor/stgcache.cxx index e7e40cf453cf..832fde7406e2 100644 --- a/sot/source/sdstor/stgcache.cxx +++ b/sot/source/sdstor/stgcache.cxx @@ -336,7 +336,8 @@ bool StgCache::Read( sal_Int32 nPage, void* pBuf, sal_Int32 nPg ) // fixed address and size for the header if( nPage == -1 ) { - nPos = 0L, nBytes = 512; + nPos = 0L; + nBytes = 512; nPg2 = nPg; } if( m_pStrm->Tell() != nPos ) @@ -365,7 +366,10 @@ bool StgCache::Write( sal_Int32 nPage, void* pBuf, sal_Int32 nPg ) // fixed address and size for the header // nPageSize must be >= 512, otherwise the header can not be written here, we check it on import if( nPage == -1 ) - nPos = 0L, nBytes = 512; + { + nPos = 0L; + nBytes = 512; + } if( m_pStrm->Tell() != nPos ) { m_pStrm->Seek(nPos); |