From 3cf545c76c1b72d420064bd1d21ebb43e28d75a7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 8 Feb 2006 22:24:29 +0000 Subject: [PATCH] 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 --- src/common/filefn.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 2.45.2