Kaydet (Commit) f9a6d825 authored tarafından Noel Grandin's avatar Noel Grandin

remove "trying to resize readonly stream" warning

some of code appears to rely on this clamping behaviour for correct
functioning

Change-Id: I3448994967cdc7631476a947fac0c0dda55181d3
üst e07f23b1
......@@ -417,13 +417,11 @@ sal_Int32 StgDirEntry::Seek( sal_Int32 nNew )
if( nNew < 0 )
nNew = nSize;
// try to enlarge, the readonly streams should not allow this
// try to enlarge, readonly streams do not allow this
if( nNew > nSize )
{
if ( !( m_nMode & StreamMode::WRITE ) || !SetSize( nNew ) )
{
SAL_WARN_IF(!(m_nMode & StreamMode::WRITE), "sot",
"Trying to resize readonly stream by seeking, could be a wrong offset: " << nNew);
return m_nPos;
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment