mirror of
https://github.com/winfsp/winfsp.git
synced 2025-06-07 20:42:09 -05:00
tst: memfs: remove CompareString usage
This commit is contained in:
parent
1123e7b0ef
commit
8727497662
@ -222,11 +222,16 @@ int MemfsFileNameCompare(PWSTR a0, int alen, PWSTR b0, int blen, BOOLEAN CaseIns
|
|||||||
|
|
||||||
if (CaseInsensitive)
|
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);
|
res = CompareStringW(LOCALE_INVARIANT, NORM_IGNORECASE, a, alen, b, blen);
|
||||||
if (0 != res)
|
if (0 != res)
|
||||||
res -= 2;
|
res -= 2;
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
res = _wcsnicmp(a, b, len);
|
res = _wcsnicmp(a, b, len);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user