From: Marcus Meissner marcus@jet.franken.de
Signed-off-by: Marcus Meissner marcus@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';
Please title this patch "Fix size passed to ToUnicode" instead of "fixed size passed to ToUnicode". "Fixed size" sounds like "fixed" is an adjective meaning "constant", and the [patch submission guidelines](https://wiki.winehq.org/Submitting_Patches#The_commit_message) recommend capitalizing the first letter of the title and writing it in the imperative mood.
Other than that technicality, the patch looks good, thanks!