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:
parent
f5b0663c6f
commit
7d451c3396
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue