Module: wine Branch: master Commit: b4e6aa645b58fe755eefe619c8d7df2b9669377d URL: http://source.winehq.org/git/wine.git/?a=commit;h=b4e6aa645b58fe755eefe619c8...
Author: Dmitry Timoshkov dmitry@codeweavers.com Date: Wed Sep 17 11:38:51 2008 +0900
kernel32: Fix the target buffer size.
---
dlls/kernel32/tests/locale.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/kernel32/tests/locale.c b/dlls/kernel32/tests/locale.c index f792da2..da7a97d 100644 --- a/dlls/kernel32/tests/locale.c +++ b/dlls/kernel32/tests/locale.c @@ -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", """,