]> git.saurik.com Git - wxWidgets.git/commitdiff
Corrected wxAccess arg
authorJulian Smart <julian@anthemion.co.uk>
Wed, 22 Aug 2007 14:55:32 +0000 (14:55 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 22 Aug 2007 14:55:32 +0000 (14:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filefn.cpp

index b072f52667cab142bf281d2f0b44b321f1290dec..baeec9ec91da8951143f768b4cd30ed71edaa043 100644 (file)
@@ -1915,7 +1915,7 @@ bool wxIsWritable(const wxString &path)
 {
 #if defined( __UNIX__ ) || defined(__OS2__)
     // access() will take in count also symbolic links
-    return wxAccess(path.fn_str(), W_OK) == 0;
+    return wxAccess(path.c_str(), W_OK) == 0;
 #elif defined( __WINDOWS__ )
     return wxCheckWin32Permission(path, GENERIC_WRITE);
 #else
@@ -1929,7 +1929,7 @@ bool wxIsReadable(const wxString &path)
 {
 #if defined( __UNIX__ ) || defined(__OS2__)
     // access() will take in count also symbolic links
-    return wxAccess(path.fn_str(), R_OK) == 0;
+    return wxAccess(path.c_str(), R_OK) == 0;
 #elif defined( __WINDOWS__ )
     return wxCheckWin32Permission(path, GENERIC_READ);
 #else
@@ -1943,7 +1943,7 @@ bool wxIsExecutable(const wxString &path)
 {
 #if defined( __UNIX__ ) || defined(__OS2__)
     // access() will take in count also symbolic links
-    return wxAccess(path.fn_str(), X_OK) == 0;
+    return wxAccess(path.c_str(), X_OK) == 0;
 #elif defined( __WINDOWS__ )
    return wxCheckWin32Permission(path, GENERIC_EXECUTE);
 #else