From c55f0098d5b6cd299e0ee5a9dc00697510f3b9bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karsten=20Ball=C3=BCder?= Date: Sun, 9 Jul 2000 12:22:48 +0000 Subject: [PATCH] fixed compilation - please check for correctness git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7725 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/filefn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index 3b74aeb391..7cf2962bf7 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -1160,11 +1160,11 @@ bool wxDirExists(const wxString& dir) // does the path exists? (may have or not '/' or '\\' at the end) bool wxPathExists(const wxChar *pszPathName) { + wxString strPath(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 "\" - wxString strPath(pszPathName); while ( wxEndsWithPathSeparator(strPath) ) { size_t len = strPath.length();