kernel32: Fix the target buffer size.

Dmitry Timoshkov dmitry at codeweavers.com
Tue Sep 16 21:38:51 CDT 2008


---
 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",
 "\"",
-- 
1.6.0.1






More information about the wine-patches mailing list