]> git.saurik.com Git - wxWidgets.git/commitdiff
set buffer length after reading the file contents into it successfully (part of ...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 19 Sep 2008 08:18:30 +0000 (08:18 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 19 Sep 2008 08:18:30 +0000 (08:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/intl.cpp

index 250ee8443c9a478e51c3f7157b8203f32cabbca9..1fd767a47ffdd7101a7602d391ad0ec346d45460 100644 (file)
@@ -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