Michael Stefaniuc : kernel32/tests: Correct the buffer size passed to FormatMessageW().
Alexandre Julliard
julliard at winehq.org
Wed Jun 6 15:21:48 CDT 2018
Module: wine
Branch: master
Commit: f770ea1370395101973e313a70881c211553e040
URL: https://source.winehq.org/git/wine.git/?a=commit;h=f770ea1370395101973e313a70881c211553e040
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Wed Jun 6 20:36:16 2018 +0200
kernel32/tests: Correct the buffer size passed to FormatMessageW().
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/kernel32/tests/format_msg.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/kernel32/tests/format_msg.c b/dlls/kernel32/tests/format_msg.c
index 290bce9..43e4d35 100644
--- a/dlls/kernel32/tests/format_msg.c
+++ b/dlls/kernel32/tests/format_msg.c
@@ -289,8 +289,7 @@ static void test_message_from_string_wide(void)
ok(r==4,"failed: r=%d\n", r);
/* a single digit, left justified */
- r = doitW(FORMAT_MESSAGE_FROM_STRING, fmt_1_4d, 0,
- 0, out, sizeof(out)/sizeof(CHAR), 1);
+ r = doitW(FORMAT_MESSAGE_FROM_STRING, fmt_1_4d, 0, 0, out, ARRAY_SIZE(out), 1);
ok(!lstrcmpW(s_1_4d, out), "failed out=%s\n", wine_dbgstr_w(out));
ok(r==4,"failed: r=%d\n", r);
More information about the wine-cvs
mailing list