summaryrefslogtreecommitdiff
path: root/sot/source/sdstor/stgcache.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sot/source/sdstor/stgcache.cxx')
-rw-r--r--sot/source/sdstor/stgcache.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sot/source/sdstor/stgcache.cxx b/sot/source/sdstor/stgcache.cxx
index 9360ce184f88..55f91f12bbb2 100644
--- a/sot/source/sdstor/stgcache.cxx
+++ b/sot/source/sdstor/stgcache.cxx
@@ -344,7 +344,7 @@ bool StgCache::Read( sal_Int32 nPage, void* pBuf )
{
m_pStrm->Seek(nPos);
}
- m_pStrm->Read( pBuf, nBytes );
+ m_pStrm->ReadBytes( pBuf, nBytes );
if ( 1 != nPg2 )
SetError( SVSTREAM_READ_ERROR );
else
@@ -372,7 +372,7 @@ bool StgCache::Write( sal_Int32 nPage, void* pBuf )
{
m_pStrm->Seek(nPos);
}
- sal_uLong nRes = m_pStrm->Write( pBuf, nBytes );
+ sal_uLong nRes = m_pStrm->WriteBytes( pBuf, nBytes );
if( nRes != nBytes )
SetError( SVSTREAM_WRITE_ERROR );
else