From 8727497662224040b5469adb18ec4667477b9642 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Thu, 10 May 2018 12:31:01 -0700 Subject: [PATCH] tst: memfs: remove CompareString usage --- tst/memfs/memfs.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tst/memfs/memfs.cpp b/tst/memfs/memfs.cpp index e5006d12..57b8b1c6 100644 --- a/tst/memfs/memfs.cpp +++ b/tst/memfs/memfs.cpp @@ -222,11 +222,16 @@ int MemfsFileNameCompare(PWSTR a0, int alen, PWSTR b0, int blen, BOOLEAN CaseIns if (CaseInsensitive) { - /* better Unicode comparison when case-insensitive */ + /* + * Turns out that CompareStringW does not like characters such as '\x1' and '\x2'. + * Disabling this. + */ +#if 0 res = CompareStringW(LOCALE_INVARIANT, NORM_IGNORECASE, a, alen, b, blen); if (0 != res) res -= 2; else +#endif res = _wcsnicmp(a, b, len); } else