https://git.reactos.org/?p=reactos.git;a=commitdiff;h=71e4450761d6fbc2801d2…
commit 71e4450761d6fbc2801d23ae3e00674ab65f7519
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Wed Mar 10 19:45:03 2021 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Wed Mar 10 19:45:03 2021 +0900
[BROWSEUI] Follow-up of #3507
Case insensitiveness fix. CORE-9281
---
dll/win32/browseui/CAutoComplete.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dll/win32/browseui/CAutoComplete.cpp b/dll/win32/browseui/CAutoComplete.cpp
index d1ba30d4b86..9bb6405d594 100644
--- a/dll/win32/browseui/CAutoComplete.cpp
+++ b/dll/win32/browseui/CAutoComplete.cpp
@@ -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;