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:
		| @@ -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); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user