[PATCH] advapi32/tests: The preferred UI language check must be case insensitive.

Francois Gouget fgouget at codeweavers.com
Mon Dec 6 03:21:25 CST 2021


This avoid skipping the test for the French locale.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
It looks like langW was in lowercase back when w10pro64 was running 
Windows 10 2004; but it's uppercase in 21H1 which is why the 
advapi32:lsa failure disappeared for the French locale.

 dlls/advapi32/tests/lsa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/advapi32/tests/lsa.c b/dlls/advapi32/tests/lsa.c
index f8c822a7de2..58ab37c9aa9 100644
--- a/dlls/advapi32/tests/lsa.c
+++ b/dlls/advapi32/tests/lsa.c
@@ -403,7 +403,7 @@ static void test_LsaLookupSids(void)
         check_unicode_string(&names[0].Name, L"Everyone");
     else if (wcscmp(langW, L"0407") == 0) /* German */
         check_unicode_string(&names[0].Name, L"Jeder");
-    else if (wcscmp(langW, L"040C") == 0) /* French */
+    else if (wcsicmp(langW, L"040C") == 0) /* French */
         check_unicode_string(&names[0].Name, L"Tout le monde");
     else
         trace("<Everyone-group>.Name=%s\n", debugstr_w(names[0].Name.Buffer));
-- 
2.30.2



More information about the wine-devel mailing list