fixed wxIsPathSeparator() to work for Mac

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-01-04 01:39:22 +00:00
parent c6b3a07ceb
commit 903b61cc9d
3 changed files with 13 additions and 8 deletions

View File

@@ -1519,11 +1519,9 @@ wxString wxGetOSDirectory()
bool wxEndsWithPathSeparator(const wxChar *pszFileName)
{
size_t len = wxStrlen(pszFileName);
if ( len == 0 )
return FALSE;
else
return wxIsPathSeparator(pszFileName[len - 1]);
size_t len = wxStrlen(pszFileName);
return len && wxIsPathSeparator(pszFileName[len - 1]);
}
// find a file in a list of directories, returns false if not found