]> git.saurik.com Git - wxWidgets.git/commitdiff
don't always find the file if it's in the current directory (even if it's not in...
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 8 Feb 2006 22:24:29 +0000 (22:24 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 8 Feb 2006 22:24:29 +0000 (22:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filefn.cpp

index dabc946ebf50984b0361dd9cf2c7b6f0147a15ed..d1d0efe243e8bb4e44a60de7fc682af365693a04 100644 (file)
@@ -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);