kernel32: Fix the target buffer size.

This commit is contained in:
Dmitry Timoshkov 2008-09-17 11:38:51 +09:00 committed by Alexandre Julliard
parent e853f1076c
commit b4e6aa645b
1 changed files with 3 additions and 3 deletions

View File

@ -1332,14 +1332,14 @@ static void test_LCMapStringW(void)
/* test srclen = 0 */
SetLastError(0xdeadbeef);
ret = LCMapStringW(LOCALE_USER_DEFAULT, 0, upper_case, 0, buf, sizeof(buf));
ret = LCMapStringW(LOCALE_USER_DEFAULT, 0, upper_case, 0, buf, sizeof(buf)/sizeof(WCHAR));
ok(!ret, "LCMapStringW should fail with srclen = 0\n");
ok(GetLastError() == ERROR_INVALID_PARAMETER,
"unexpected error code %d\n", GetLastError());
}
/* this requires collation table patch to make it MS compatible */
const char *strings_sorted[] =
static const char * const strings_sorted[] =
{
"'",
"-",
@ -1371,7 +1371,7 @@ const char *strings_sorted[] =
"C"
};
const char *strings[] =
static const char * const strings[] =
{
"C",
"\"",