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
This commit is contained in:
Vadim Zeitlin
2006-02-08 22:24:29 +00:00
parent f303d69f93
commit 3cf545c76c

View File

@@ -242,8 +242,7 @@ bool wxPathList::Member (const wxString& path)
wxString wxPathList::FindValidPath (const wxString& file) wxString wxPathList::FindValidPath (const wxString& file)
{ {
if (wxFileExists (wxExpandPath(wxFileFunctionsBuffer, file))) wxExpandPath(wxFileFunctionsBuffer, file);
return wxString(wxFileFunctionsBuffer);
wxChar buf[_MAXPATHLEN]; wxChar buf[_MAXPATHLEN];
wxStrcpy(buf, wxFileFunctionsBuffer); wxStrcpy(buf, wxFileFunctionsBuffer);