- if (m_parent_i_stream->IsOk() && ds.Read32() != m_crc)
- wxLogError(_("reading Gzip stream: bad crc"));
- else if (m_parent_i_stream->IsOk() && ds.Read32() != (wxUint32)TellI())
- wxLogError(_("reading Gzip stream: incorrect length"));
- else if (m_parent_i_stream->IsOk())
- m_lasterror = wxSTREAM_EOF;
+ if (m_parent_i_stream->IsOk()) {
+ if (ds.Read32() != m_crc)
+ wxLogError(_("reading Gzip stream: bad crc"));
+ else if (ds.Read32() != (wxUint32)TellI())
+ wxLogError(_("reading Gzip stream: incorrect length"));
+ else
+ m_lasterror = wxSTREAM_EOF;
+ }