https://git.reactos.org/?p=reactos.git;a=commitdiff;h=96eddc22d217aafd68abc…
commit 96eddc22d217aafd68abc2eb3854197b36ea4bc9
Author: Amine Khaldi <amine.khaldi(a)reactos.org>
AuthorDate: Sat Feb 2 14:14:08 2019 +0100
Commit: Amine Khaldi <amine.khaldi(a)reactos.org>
CommitDate: Sat Feb 2 14:14:08 2019 +0100
[SERIALUI_WINETEST] Sync with Wine Staging 4.0. CORE-15682
---
modules/rostests/winetests/serialui/confdlg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/rostests/winetests/serialui/confdlg.c
b/modules/rostests/winetests/serialui/confdlg.c
index 4606a75b60..bd541cda2b 100644
--- a/modules/rostests/winetests/serialui/confdlg.c
+++ b/modules/rostests/winetests/serialui/confdlg.c
@@ -165,7 +165,7 @@ static void test_drvCommConfigDialogW(void)
/* test ports "com1" - "com4" */
for (i = 1; i < 5 ; i++) {
sprintf(bufferA, fmt_comA, i);
- MultiByteToWideChar( CP_ACP, 0, bufferA, -1, bufferW,
sizeof(bufferW)/sizeof(WCHAR) );
+ MultiByteToWideChar(CP_ACP, 0, bufferA, -1, bufferW, ARRAY_SIZE(bufferW));
len = sizeof(pCC);
ZeroMemory(pCC, sizeof(pCC));
SetLastError(0xdeadbeef);
@@ -346,7 +346,7 @@ static void test_drvGetDefaultCommConfigW(void)
/* test ports "com0" - "com10" */
for (i = 0; i < 11 ; i++) {
sprintf(bufferA, fmt_comA, i);
- MultiByteToWideChar( CP_ACP, 0, bufferA, -1, bufferW,
sizeof(bufferW)/sizeof(WCHAR) );
+ MultiByteToWideChar(CP_ACP, 0, bufferA, -1, bufferW, ARRAY_SIZE(bufferW));
len = sizeof(pCC);
ZeroMemory(pCC, sizeof(pCC));
SetLastError(0xdeadbeef);