iphlpapi: Fixed size to MultiByteToWideChar.

Signed-off-by: Marcus Meissner <marcus@jet.franken.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Marcus Meissner 2019-09-08 17:43:19 +02:00 committed by Alexandre Julliard
parent 98b1d68aac
commit e7007ee814
1 changed files with 2 additions and 2 deletions

View File

@ -2331,7 +2331,7 @@ static void test_ParseNetworkString(void)
for (i = 0; i < ARRAY_SIZE(ipv4_address_tests); i++) for (i = 0; i < ARRAY_SIZE(ipv4_address_tests); i++)
{ {
MultiByteToWideChar(CP_ACP, 0, ipv4_address_tests[i].str, sizeof(ipv4_address_tests[i].str), MultiByteToWideChar(CP_ACP, 0, ipv4_address_tests[i].str, sizeof(ipv4_address_tests[i].str),
wstr, sizeof(wstr)); wstr, ARRAY_SIZE(wstr));
memset(&info, 0x99, sizeof(info)); memset(&info, 0x99, sizeof(info));
port = 0x9999; port = 0x9999;
prefix_len = 0x99; prefix_len = 0x99;
@ -2357,7 +2357,7 @@ static void test_ParseNetworkString(void)
for (i = 0; i < ARRAY_SIZE(ipv4_service_tests); i++) for (i = 0; i < ARRAY_SIZE(ipv4_service_tests); i++)
{ {
MultiByteToWideChar(CP_ACP, 0, ipv4_service_tests[i].str, sizeof(ipv4_service_tests[i].str), MultiByteToWideChar(CP_ACP, 0, ipv4_service_tests[i].str, sizeof(ipv4_service_tests[i].str),
wstr, sizeof(wstr)); wstr, ARRAY_SIZE(wstr));
memset(&info, 0x99, sizeof(info)); memset(&info, 0x99, sizeof(info));
port = 0x9999; port = 0x9999;
prefix_len = 0x99; prefix_len = 0x99;