X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0c133e13b36a923c65f94499554e432bc3a0daa..6528a7f14507ed235ab087d63e3a0be68ea9b1b8:/src/common/fileconf.cpp diff --git a/src/common/fileconf.cpp b/src/common/fileconf.cpp index 69df300ba2..af20d35358 100644 --- a/src/common/fileconf.cpp +++ b/src/common/fileconf.cpp @@ -471,7 +471,7 @@ wxFileConfig::wxFileConfig(wxInputStream &inStream, const wxMBConv& conv) } #else // !wxUSE_UNICODE // no need for conversion - cbuf = wxCharBuffer::CreateNonOwned((char *)buf.GetData()); + cbuf = wxCharBuffer::CreateNonOwned((char *)buf.GetData(), buf.GetDataLen()); #endif // wxUSE_UNICODE/!wxUSE_UNICODE @@ -746,6 +746,11 @@ void wxFileConfig::SetPath(const wxString& strPath) DoSetPath(strPath, true /* create missing path components */); } +const wxString& wxFileConfig::GetPath() const +{ + return m_strPath; +} + // ---------------------------------------------------------------------------- // enumeration // ----------------------------------------------------------------------------