Brendan McGrath : kernel32/tests: Length of sort keys must be equal with and without dest.

Alexandre Julliard julliard at winehq.org
Tue Mar 5 15:06:31 CST 2019


Module: wine
Branch: master
Commit: 7c1e0ef73634ca4390c0d9b158aa0c290fb200a9
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=7c1e0ef73634ca4390c0d9b158aa0c290fb200a9

Author: Brendan McGrath <brendan at redmandi.com>
Date:   Tue Mar  5 20:58:31 2019 +1100

kernel32/tests: Length of sort keys must be equal with and without dest.

Signed-off-by: Brendan McGrath <brendan at redmandi.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/kernel32/tests/locale.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/dlls/kernel32/tests/locale.c b/dlls/kernel32/tests/locale.c
index 2627fc5..e11fe1b 100644
--- a/dlls/kernel32/tests/locale.c
+++ b/dlls/kernel32/tests/locale.c
@@ -2362,6 +2362,13 @@ static void test_LCMapStringA(void)
     ok(ret == ret2, "lengths of sort keys must be equal\n");
     ok(!lstrcmpA(buf, buf2), "sort keys must be equal\n");
 
+    /* test we get the same length when no dest buffer is provided */
+    ret2 = LCMapStringA(LOCALE_USER_DEFAULT, LCMAP_SORTKEY,
+                       upper_case, lstrlenA(upper_case), NULL, 0);
+    ok(ret2, "LCMapStringA must succeed\n");
+    todo_wine
+    ok(ret == ret2, "lengths of sort keys must be equal (%d vs %d)\n", ret, ret2);
+
     /* test LCMAP_SORTKEY | NORM_IGNORECASE */
     ret = LCMapStringA(LOCALE_USER_DEFAULT, LCMAP_SORTKEY | NORM_IGNORECASE,
                        upper_case, -1, buf, sizeof(buf));




More information about the wine-cvs mailing list