[BROWSEUI] Follow-up of #3507

Case insensitiveness fix. CORE-9281
This commit is contained in:
Katayama Hirofumi MZ 2021-03-10 19:45:03 +09:00
parent c19d9df259
commit 71e4450761

View file

@ -830,7 +830,8 @@ VOID CAutoComplete::DoAutoAppend()
for (INT ich = 0; ich < strCommon.GetLength(); ++ich)
{
if (ich < strItem.GetLength() && strCommon[ich] != strItem[ich])
if (ich < strItem.GetLength() &&
::ChrCmpIW(strCommon[ich], strItem[ich]) != 0)
{
strCommon = strCommon.Left(ich); // shrink the common string
break;