set buffer length after reading the file contents into it successfully (part of #9980)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1263,6 +1263,8 @@ bool wxMsgCatalogFile::Load(const wxString& szDirPrefix, const wxString& szName,
|
||||
// read the whole file in memory
|
||||
if ( fileMsg.Read(m_data.GetWriteBuf(nSize), nSize) != lenFile )
|
||||
return false;
|
||||
|
||||
m_data.UngetWriteBuf(nSize);
|
||||
#endif // wxUSE_FILESYSTEM/!wxUSE_FILESYSTEM
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user