[BROWSEUI] Follow-up of #3507
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Wed, 10 Mar 2021 10:45:03 +0000 (19:45 +0900)
committerKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Wed, 10 Mar 2021 10:45:03 +0000 (19:45 +0900)
Case insensitiveness fix. CORE-9281

dll/win32/browseui/CAutoComplete.cpp

index d1ba30d..9bb6405 100644 (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;