From: Vadim Zeitlin Date: Wed, 8 Feb 2006 22:24:29 +0000 (+0000) Subject: don't always find the file if it's in the current directory (even if it's not in... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3cf545c76c1b72d420064bd1d21ebb43e28d75a7 don't always find the file if it's in the current directory (even if it's not in the search path) (patch 1411994 closing bug 1214987) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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);