fix for wxPathList::FindValidPath() for wxUSE_STL

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2006-02-27 15:14:27 +00:00
parent 3c05fe1dbc
commit e2fb71bc85

View File

@ -251,7 +251,7 @@ wxString wxPathList::FindValidPath (const wxString& file)
for (wxStringList::compatibility_iterator node = GetFirst(); node; node = node->GetNext())
{
const wxChar *path = node->GetData();
const wxString path(node->GetData());
wxStrcpy (wxFileFunctionsBuffer, path);
wxChar ch = wxFileFunctionsBuffer[wxStrlen(wxFileFunctionsBuffer)-1];
if (ch != wxT('\\') && ch != wxT('/'))