Marcus Meissner : user32/tests: Fix size passed to ToUnicode.
Module: wine Branch: master Commit: aa1cc9ad38df7fe6e3d2dc46f84e4955f20ea802 URL: https://gitlab.winehq.org/wine/wine/-/commit/aa1cc9ad38df7fe6e3d2dc46f84e495... Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Fri Feb 24 11:31:58 2023 +0100 user32/tests: Fix size passed to ToUnicode. Signed-off-by: Marcus Meissner <marcus(a)jet.franken.de> --- dlls/user32/tests/input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/user32/tests/input.c b/dlls/user32/tests/input.c index ee39b11fc12..be41078bf29 100644 --- a/dlls/user32/tests/input.c +++ b/dlls/user32/tests/input.c @@ -3186,7 +3186,7 @@ static void test_ToAscii(void) ok(character == '\r', "ToAscii for Return was %i (expected 13)\n", character); wstr[0] = 0; - ret = ToUnicode('A', SC_A, state, wstr, sizeof(wstr), 0); + ret = ToUnicode('A', SC_A, state, wstr, ARRAY_SIZE(wstr), 0); ok(ret == 1, "ToUnicode(A) returned %i, expected 1\n", ret); str[0] = '\0';
participants (1)
-
Alexandre Julliard