git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37398
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxString wxPathList::FindValidPath (const wxString& file)
{
wxString wxPathList::FindValidPath (const wxString& file)
{
- if (wxFileExists (wxExpandPath(wxFileFunctionsBuffer, file)))
- return wxString(wxFileFunctionsBuffer);
+ wxExpandPath(wxFileFunctionsBuffer, file);
wxChar buf[_MAXPATHLEN];
wxStrcpy(buf, wxFileFunctionsBuffer);
wxChar buf[_MAXPATHLEN];
wxStrcpy(buf, wxFileFunctionsBuffer);