iphlpapi: Report NO_ERROR when IcmpSendEcho() succeeded.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
417e996e97
commit
3825be96f3
|
@ -424,7 +424,10 @@ DWORD WINAPI IcmpSendEcho(
|
|||
TRACE("received an ICMP packet of type,code=%d,%d\n",icmp_header->icmp_type,icmp_header->icmp_code);
|
||||
if (icmp_header->icmp_type==ICMP_ECHOREPLY) {
|
||||
if ((icmp_header->icmp_id==id) && (icmp_header->icmp_seq==seq))
|
||||
{
|
||||
ier->Status=IP_SUCCESS;
|
||||
SetLastError(NO_ERROR);
|
||||
}
|
||||
} else {
|
||||
switch (icmp_header->icmp_type) {
|
||||
case ICMP_UNREACH:
|
||||
|
|
|
@ -1118,7 +1118,7 @@ todo_wine
|
|||
error = GetLastError();
|
||||
reply = (ICMP_ECHO_REPLY *)replydata;
|
||||
ok(ret, "IcmpSendEcho failed unexpectedly\n");
|
||||
todo_wine ok(error == NO_ERROR, "Expect last error:0x%08x, got:0x%08x\n", NO_ERROR, error);
|
||||
ok(error == NO_ERROR, "Expect last error:0x%08x, got:0x%08x\n", NO_ERROR, error);
|
||||
ok(INADDR_LOOPBACK == ntohl(reply->Address), "Address mismatch, expect:%s, got: %s\n", ntoa(INADDR_LOOPBACK),
|
||||
ntoa(reply->Address));
|
||||
ok(reply->Status == IP_SUCCESS, "Expect status:0x%08x, got:0x%08x\n", IP_SUCCESS, reply->Status);
|
||||
|
|
Loading…
Reference in New Issue