https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2ea897da444f5263624a4…
commit 2ea897da444f5263624a48787c8c038efcd321f0
Author: Amine Khaldi <amine.khaldi(a)reactos.org>
AuthorDate: Sat Jan 26 13:13:30 2019 +0100
Commit: Amine Khaldi <amine.khaldi(a)reactos.org>
CommitDate: Sat Jan 26 13:13:30 2019 +0100
[LOCALUI_WINETEST] Sync with Wine Staging 4.0. CORE-15682
---
modules/rostests/winetests/localui/localui.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/rostests/winetests/localui/localui.c
b/modules/rostests/winetests/localui/localui.c
index b0b51e338c..f051880fd1 100644
--- a/modules/rostests/winetests/localui/localui.c
+++ b/modules/rostests/winetests/localui/localui.c
@@ -310,7 +310,7 @@ START_TEST(localui)
while (((lpt_present == NULL) || (lpt_absent == NULL)) && id < 9) {
id++;
sprintf(bufferA, fmt_lptA, id);
- MultiByteToWideChar( CP_ACP, 0, bufferA, -1, bufferW,
sizeof(bufferW)/sizeof(WCHAR) );
+ MultiByteToWideChar( CP_ACP, 0, bufferA, -1, bufferW, ARRAY_SIZE(bufferW));
pi2 = find_portinfo2(bufferW);
if (pi2 && (lpt_present == NULL)) lpt_present = pi2;
if (!pi2 && (lpt_absent == NULL)) lpt_absent = strdupW(bufferW);
@@ -321,7 +321,7 @@ START_TEST(localui)
while (((com_present == NULL) || (com_absent == NULL)) && id < 9) {
id++;
sprintf(bufferA, fmt_comA, id);
- MultiByteToWideChar( CP_ACP, 0, bufferA, -1, bufferW,
sizeof(bufferW)/sizeof(WCHAR) );
+ MultiByteToWideChar( CP_ACP, 0, bufferA, -1, bufferW, ARRAY_SIZE(bufferW));
pi2 = find_portinfo2(bufferW);
if (pi2 && (com_present == NULL)) com_present = pi2;
if (!pi2 && (com_absent == NULL)) com_absent = strdupW(bufferW);