[1/2] kernel32/tests: Add tests for LCMapStringEx

Alexandre Julliard julliard at winehq.org
Tue Apr 3 05:29:00 CDT 2012


André Hentschel <nerv at dawncrow.de> writes:

>      /* test srclen = 0 */
>      SetLastError(0xdeadbeef);
> -    ret = LCMapStringW(LOCALE_USER_DEFAULT, 0, upper_case, 0, buf, sizeof(buf)/sizeof(WCHAR));
> -    ok(!ret, "LCMapStringW should fail with srclen = 0\n");
> +    ret = LCMapStringU(0, upper_case, 0, buf, sizeof(buf)/sizeof(WCHAR));
> +    ok(!ret, "LCMapStringU should fail with srclen = 0\n");

This is very confusing, there's no such API as LCMapStringU. You should
display the correct function being tested in all the error messages, and
pick a better name for the function pointer.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list