CompareNoCase works like strcmp: < 0 for less than, 0 if equal, > 0

if greater than
This commit is contained in:
Glenn Maynard
2003-07-17 23:22:51 +00:00
parent 3b755ba2a2
commit 5ab28228f4
+1 -1
View File
@@ -1085,7 +1085,7 @@ Course *SongManager::FindCourse( CString sName )
{
for( unsigned i = 0; i < m_pCourses.size(); i++ )
{
if( sName.CompareNoCase(m_pCourses[i]->m_sName) )
if( !sName.CompareNoCase(m_pCourses[i]->m_sName) )
return m_pCourses[i];
}