https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c1f9ea10aa5b651d4b875…
commit c1f9ea10aa5b651d4b875625e50a77853094bf80
Author: Whindmar Saksit <whindsaks(a)proton.me>
AuthorDate: Sun Dec 17 22:16:34 2023 +0100
Commit: GitHub <noreply(a)github.com>
CommitDate: Sun Dec 17 22:16:34 2023 +0100
[REGEDIT] Fix inverted case matching when searching value data (#6159)
---
base/applications/regedit/find.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/base/applications/regedit/find.c b/base/applications/regedit/find.c
index 9405271a916..919ae0cbe78 100644
--- a/base/applications/regedit/find.c
+++ b/base/applications/regedit/find.c
@@ -91,7 +91,7 @@ static BOOL CompareName(LPCWSTR pszName1, LPCWSTR pszName2)
static BOOL MatchString(LPCWCH pch1, INT cch1, LPCWCH pch2, INT cch2)
{
INT i;
- DWORD dwNorm = ((s_dwFlags & RSF_MATCHCASE) ? NORM_IGNORECASE : 0);
+ DWORD dwNorm = ((s_dwFlags & RSF_MATCHCASE) ? 0 : NORM_IGNORECASE);
if (s_dwFlags & RSF_WHOLESTRING)
return 2 == CompareStringW(LOCALE_SYSTEM_DEFAULT, dwNorm, pch1, cch1, pch2,
cch2);