git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30500
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// read the whole file in memory
m_pData = new size_t8[nSize];
// read the whole file in memory
m_pData = new size_t8[nSize];
- if ( fileMsg.Read(m_pData, nSize) != nSize ) {
+ if ( fileMsg.Read(m_pData, (size_t)nSize) != nSize ) {
wxDELETEA(m_pData);
return false;
}
wxDELETEA(m_pData);
return false;
}
Swap(pHeader->ofsOrigTable));
m_pTransTable = (wxMsgTableEntry *)(m_pData +
Swap(pHeader->ofsTransTable));
Swap(pHeader->ofsOrigTable));
m_pTransTable = (wxMsgTableEntry *)(m_pData +
Swap(pHeader->ofsTransTable));
+ m_nSize = (size_t32)nSize;
// now parse catalog's header and try to extract catalog charset and
// plural forms formula from it:
// now parse catalog's header and try to extract catalog charset and
// plural forms formula from it: