Kaydet (Commit) 1c29456c authored tarafından Caolán McNamara's avatar Caolán McNamara

ofz: init vars

Change-Id: Ie35617997845de25af9e528668bce4c332ac408a
üst 76201c60
......@@ -279,17 +279,17 @@ bool PSDReader::ImplReadHeader()
// this is a loop over the resource entries to get the resolution info
while( m_rPSD.Tell() < nLayerPos )
{
sal_uInt8 n8;
sal_uInt32 nType, nPStringLen, nResEntryLen;
sal_uInt16 nUniqueID;
m_rPSD.ReadUInt32( nType ).ReadUInt16( nUniqueID ).ReadUChar( n8 );
nPStringLen = n8;
if ( nType != 0x3842494d )
sal_uInt32 nType(0);
sal_uInt16 nUniqueID(0);
sal_uInt8 n8(0);
m_rPSD.ReadUInt32(nType).ReadUInt16(nUniqueID).ReadUChar(n8);
if (nType != 0x3842494d)
break;
sal_uInt32 nPStringLen = n8;
if ( ! ( nPStringLen & 1 ) )
nPStringLen++;
m_rPSD.SeekRel( nPStringLen ); // skipping the pstring
sal_uInt32 nResEntryLen(0);
m_rPSD.ReadUInt32( nResEntryLen );
if ( nResEntryLen & 1 )
nResEntryLen++; // the resource entries are padded
......
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