Avoid doubling of path separator (needed to make it work on OS/2).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@24646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -148,7 +148,8 @@ bool wxDirData::Read(wxString *filename)
|
||||
|
||||
// speed up string concatenation in the loop a bit
|
||||
wxString path = m_dirname;
|
||||
path += _T('/');
|
||||
if (!wxIsPathSeparator(path.Last()))
|
||||
path += _T('/');
|
||||
path.reserve(path.length() + 255);
|
||||
|
||||
wxString de_d_name;
|
||||
|
Reference in New Issue
Block a user