#89105#: first read bytestring, then decode

This commit is contained in:
Mathias Bauer 2001-07-04 09:15:16 +00:00
parent 33d10b41b6
commit 5a09fa4728

View file

@ -2005,11 +2005,13 @@ String UCBStorage::GetLinkedFile( SvStream &rStream )
rStream >> nBytes;
if( nBytes == 0x04034b50 )
{
rStream.ReadByteString( aString, RTL_TEXTENCODING_UTF8 );
if ( aString.CompareToAscii( "ContentURL=", 11 ) == COMPARE_EQUAL )
aString.Erase( 0, 11 );
else
aString.Erase();
ByteString aTmp;
rStream.ReadByteString( aTmp );
if ( aTmp.CompareTo( "ContentURL=", 11 ) == COMPARE_EQUAL )
{
aTmp.Erase( 0, 11 );
aString = String( aTmp, RTL_TEXTENCODING_UTF8 );
}
}
rStream.Seek( nPos );