Another work around for VC8 compiler bug after ZIP64 changes
Apply the same fix as in ba851346b5
in another
place where the same bug occurs.
This commit is contained in:
@@ -1152,8 +1152,10 @@ size_t wxZipEntry::ReadCentral(wxInputStream& stream, wxMBConv& conv)
|
|||||||
>> m_DiskStart >> m_InternalAttributes >> m_ExternalAttributes;
|
>> m_DiskStart >> m_InternalAttributes >> m_ExternalAttributes;
|
||||||
SetOffset(ds.Read32());
|
SetOffset(ds.Read32());
|
||||||
|
|
||||||
wxMBConv& strConv =
|
// Another MSVS 2005 workaround, see above (FIXME-VC8).
|
||||||
((m_Flags & wxZIP_LANG_ENC_UTF8) == 0) ? conv : wxConvUTF8;
|
wxMBConv& strConv = m_Flags & wxZIP_LANG_ENC_UTF8
|
||||||
|
? static_cast<wxMBConv&>(wxConvUTF8)
|
||||||
|
: conv;
|
||||||
SetName(ReadString(stream, nameLen, strConv), wxPATH_UNIX);
|
SetName(ReadString(stream, nameLen, strConv), wxPATH_UNIX);
|
||||||
if (stream.LastRead() != nameLen + 0u)
|
if (stream.LastRead() != nameLen + 0u)
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user