X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/284be59b1028da651c7136d90025283d22877678..fa6416df7f26f0b57afa4f7cbde75dd5d5dcbf27:/src/common/filename.cpp diff --git a/src/common/filename.cpp b/src/common/filename.cpp index 17664f0fba..0e3bbb253b 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -1056,7 +1056,7 @@ bool wxFileName::GetShortcutTarget(const wxString& shortcutPath, wxString& targe bool success = false; // Assume it's not a shortcut if it doesn't end with lnk - if (ext.Lower() != wxT("lnk")) + if (ext.CmpNoCase(wxT("lnk"))!=0) return false; // create a ShellLink object @@ -1453,7 +1453,7 @@ wxString wxFileName::GetPath( int flags, wxPathFormat format ) const } // convert back from ".." to nothing - if ( m_dirs[i] != wxT("..") ) + if ( !m_dirs[i].IsSameAs(wxT("..")) ) fullpath += m_dirs[i]; break; @@ -1470,7 +1470,7 @@ wxString wxFileName::GetPath( int flags, wxPathFormat format ) const // TODO: What to do with ".." under VMS // convert back from ".." to nothing - if ( m_dirs[i] != wxT("..") ) + if ( !m_dirs[i].IsSameAs(wxT("..")) ) fullpath += m_dirs[i]; break; }