Commit 5085f4f9 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

serialui/tests: Use the available ARRAY_SIZE() macro.

parent a49b28cc
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment