X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a907da15bce0446ae1f0e1794a24082ca5a4b49f..c17bcb844883451b564446bf7843e7b3f862fe48:/src/common/filefn.cpp diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index 0155530824..13ecedef05 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 ) @@ -1076,8 +1076,8 @@ bool wxDirExists(const wxString& dir) // does the path exists? (may have or not '/' or '\\' at the end) bool wxPathExists(const wxChar *pszPathName) { - // Windows API returns -1 from stat for "c:\dir\" if "c:\dir" exists - // OTOH, we should change "d:" to "d:\" and leave "\" as is. + /* Windows API returns -1 from stat for "c:\dir\" if "c:\dir" exists + * OTOH, we should change "d:" to "d:\" and leave "\" as is. */ wxString strPath(pszPathName); if ( wxEndsWithPathSeparator(pszPathName) && pszPathName[1] != _T('\0') ) strPath.Last() = _T('\0'); @@ -1444,7 +1444,7 @@ wxChar *wxGetWorkingDirectory(wxChar *buf, int sz) } #if wxUSE_UNICODE else { - wxConv_file.MB2WC(buf, cbuf, sz); + wxConvFile.MB2WC(buf, cbuf, sz); delete [] cbuf; } #endif