summaryrefslogtreecommitdiff
path: root/sot/source/sdstor/stgelem.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sot/source/sdstor/stgelem.cxx')
-rw-r--r--sot/source/sdstor/stgelem.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sot/source/sdstor/stgelem.cxx b/sot/source/sdstor/stgelem.cxx
index fc269006c334..12ed731d22bd 100644
--- a/sot/source/sdstor/stgelem.cxx
+++ b/sot/source/sdstor/stgelem.cxx
@@ -130,7 +130,7 @@ bool StgHeader::Load( StgIo& rIo )
bool StgHeader::Load( SvStream& r )
{
r.Seek( 0L );
- r.Read( m_cSignature, 8 );
+ r.ReadBytes( m_cSignature, 8 );
ReadClsId( r, m_aClsId ); // 08 Class ID
r.ReadInt32( m_nVersion ) // 1A version number
.ReadUInt16( m_nByteOrder ) // 1C Unicode byte order indicator
@@ -158,7 +158,7 @@ bool StgHeader::Store( StgIo& rIo )
SvStream& r = *rIo.GetStrm();
r.Seek( 0L );
- r.Write( m_cSignature, 8 );
+ r.WriteBytes( m_cSignature, 8 );
WriteClsId( r, m_aClsId ); // 08 Class ID
r.WriteInt32( m_nVersion ) // 1A version number
.WriteUInt16( m_nByteOrder ) // 1C Unicode byte order indicator