X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9aa521548da4b8333de615c0e30819e767ee87c9..85833f5c6c5c136d16ccd01c90cc243d5d025e0a:/src/common/filefn.cpp?ds=sidebyside diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index 699b87b180..33b30d5832 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -277,7 +277,7 @@ bool wxFileExists(const char *pszFileName) bool wxIsAbsolutePath (const wxString& filename) { - if (filename != "") + if (filename != _T("")) { if (filename[0] == _T('/') #ifdef __VMS__ @@ -721,7 +721,7 @@ wxPathOnly (wxChar *path) // Return just the directory, or NULL if no directory wxString wxPathOnly (const wxString& path) { - if (path != "") + if (path != _T("")) { wxChar buf[_MAXPATHLEN]; @@ -994,7 +994,7 @@ bool wxMkdir(const wxString& dir, int perm) // assume mkdir() has 2 args on non Windows platforms and on Windows too // for the GNU compiler -#if !defined(__WXMSW__) || (defined(__GNUWIN32__) && !defined(__MINGW32__)) +#if !defined(__WXMSW__) || (defined(__GNUWIN32__) && !defined(__MINGW32__)) || defined(__WXWINE__) if ( mkdir(wxFNCONV(dirname), perm) != 0 ) #else // MSW if ( mkdir(wxFNCONV(dirname)) != 0 ) @@ -1510,9 +1510,9 @@ wxString wxGetOSDirectory() #endif } -bool wxEndsWithPathSeparator(const char *pszFileName) +bool wxEndsWithPathSeparator(const wxChar *pszFileName) { - size_t len = Strlen(pszFileName); + size_t len = wxStrlen(pszFileName); if ( len == 0 ) return FALSE; else