iphlpapi/tests: Close the ICMP handle when done.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gabriel Ivăncescu 2020-11-23 15:47:39 +02:00 committed by Alexandre Julliard
parent f5b0663c6f
commit 7d451c3396
1 changed files with 2 additions and 0 deletions

View File

@ -1027,6 +1027,8 @@ static void testIcmpSendEcho(void)
ok(reply->Status == IP_SUCCESS, "Expect status:0x%08x, got:0x%08x\n", IP_SUCCESS, reply->Status); ok(reply->Status == IP_SUCCESS, "Expect status:0x%08x, got:0x%08x\n", IP_SUCCESS, reply->Status);
ok(reply->DataSize == sizeof(senddata), "Got size:%d\n", reply->DataSize); ok(reply->DataSize == sizeof(senddata), "Got size:%d\n", reply->DataSize);
ok(!memcmp(senddata, reply->Data, min(sizeof(senddata), reply->DataSize)), "Data mismatch\n"); ok(!memcmp(senddata, reply->Data, min(sizeof(senddata), reply->DataSize)), "Data mismatch\n");
IcmpCloseHandle(icmp);
} }
/* /*