Corrected wxAccess arg
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1860,7 +1860,7 @@ bool wxIsWritable(const wxString &path)
|
|||||||
{
|
{
|
||||||
#if defined( __UNIX__ ) || defined(__OS2__)
|
#if defined( __UNIX__ ) || defined(__OS2__)
|
||||||
// access() will take in count also symbolic links
|
// access() will take in count also symbolic links
|
||||||
return wxAccess(wxConvFile.cWX2MB(path), W_OK) == 0;
|
return wxAccess(path.c_str(), W_OK) == 0;
|
||||||
#elif defined( __WINDOWS__ )
|
#elif defined( __WINDOWS__ )
|
||||||
return wxCheckWin32Permission(path, GENERIC_WRITE);
|
return wxCheckWin32Permission(path, GENERIC_WRITE);
|
||||||
#else
|
#else
|
||||||
@@ -1874,7 +1874,7 @@ bool wxIsReadable(const wxString &path)
|
|||||||
{
|
{
|
||||||
#if defined( __UNIX__ ) || defined(__OS2__)
|
#if defined( __UNIX__ ) || defined(__OS2__)
|
||||||
// access() will take in count also symbolic links
|
// access() will take in count also symbolic links
|
||||||
return wxAccess(wxConvFile.cWX2MB(path), R_OK) == 0;
|
return wxAccess(path.c_str(), R_OK) == 0;
|
||||||
#elif defined( __WINDOWS__ )
|
#elif defined( __WINDOWS__ )
|
||||||
return wxCheckWin32Permission(path, GENERIC_READ);
|
return wxCheckWin32Permission(path, GENERIC_READ);
|
||||||
#else
|
#else
|
||||||
@@ -1888,7 +1888,7 @@ bool wxIsExecutable(const wxString &path)
|
|||||||
{
|
{
|
||||||
#if defined( __UNIX__ ) || defined(__OS2__)
|
#if defined( __UNIX__ ) || defined(__OS2__)
|
||||||
// access() will take in count also symbolic links
|
// access() will take in count also symbolic links
|
||||||
return wxAccess(wxConvFile.cWX2MB(path), X_OK) == 0;
|
return wxAccess(path.c_str(), X_OK) == 0;
|
||||||
#elif defined( __WINDOWS__ )
|
#elif defined( __WINDOWS__ )
|
||||||
return wxCheckWin32Permission(path, GENERIC_EXECUTE);
|
return wxCheckWin32Permission(path, GENERIC_EXECUTE);
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user