From cf9c8f73a9cdd9af8174a89b552a8d3653502568 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 8 Jul 2000 23:52:09 +0000 Subject: [PATCH] apply the previous bug fix only under Windows git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/filefn.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index e2dc86493e..3b74aeb391 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -1160,6 +1160,7 @@ bool wxDirExists(const wxString& dir) // does the path exists? (may have or not '/' or '\\' at the end) bool wxPathExists(const wxChar *pszPathName) { +#ifdef __WINDOWS__ // Windows fails to find directory named "c:\dir\" even if "c:\dir" exists, // so remove all trailing backslashes from the path - but don't do this for // the pathes "d:\" (which are different from "d:") nor for just "\" @@ -1172,6 +1173,7 @@ bool wxPathExists(const wxChar *pszPathName) strPath.Truncate(len - 1); } +#endif // __WINDOWS__ wxStructStat st;