diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index dabc946ebf..d1d0efe243 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -242,8 +242,7 @@ bool wxPathList::Member (const wxString& path) wxString wxPathList::FindValidPath (const wxString& file) { - if (wxFileExists (wxExpandPath(wxFileFunctionsBuffer, file))) - return wxString(wxFileFunctionsBuffer); + wxExpandPath(wxFileFunctionsBuffer, file); wxChar buf[_MAXPATHLEN]; wxStrcpy(buf, wxFileFunctionsBuffer);