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:
parent
5905857dba
commit
7f08dbbf78
@ -1152,8 +1152,10 @@ size_t wxZipEntry::ReadCentral(wxInputStream& stream, wxMBConv& conv)
|
||||
>> m_DiskStart >> m_InternalAttributes >> m_ExternalAttributes;
|
||||
SetOffset(ds.Read32());
|
||||
|
||||
wxMBConv& strConv =
|
||||
((m_Flags & wxZIP_LANG_ENC_UTF8) == 0) ? conv : wxConvUTF8;
|
||||
// Another MSVS 2005 workaround, see above (FIXME-VC8).
|
||||
wxMBConv& strConv = m_Flags & wxZIP_LANG_ENC_UTF8
|
||||
? static_cast<wxMBConv&>(wxConvUTF8)
|
||||
: conv;
|
||||
SetName(ReadString(stream, nameLen, strConv), wxPATH_UNIX);
|
||||
if (stream.LastRead() != nameLen + 0u)
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user