Commit 9d7c813b authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

user32/tests: Use correct size to LoadStringW.

parent 907c67ce
......@@ -112,7 +112,7 @@ static void test_LoadStringW(void)
{
winetest_push_context("Test %u", i);
length1 = LoadStringW(hInst, string_table_tests[i].id, returnedstringw, sizeof(returnedstringw));
length1 = LoadStringW(hInst, string_table_tests[i].id, returnedstringw, ARRAY_SIZE(returnedstringw));
ok(length1 == wcslen(string_table_tests[i].string), "Got wrong length %d.\n", length1);
ok(!wcscmp(returnedstringw, string_table_tests[i].string), "Got wrong string %s.\n",
debugstr_w(returnedstringw));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment