[PING][TRACERT] Fully support Win64 ICMP_ECHO_REPLY32 (#2427)

This commit is contained in:
Serge Gautherie 2020-03-09 19:41:39 +01:00 committed by GitHub
parent 2712762538
commit 8532c3b6f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

View file

@ -296,8 +296,13 @@ DecodeResponse(
}
else
{
#ifdef _WIN64
PICMP_ECHO_REPLY32 EchoReplyV4;
EchoReplyV4 = (PICMP_ECHO_REPLY32)ReplyBuffer;
#else
PICMP_ECHO_REPLY EchoReplyV4;
EchoReplyV4 = (PICMP_ECHO_REPLY)ReplyBuffer;
#endif
Status = EchoReplyV4->Status;
RoundTripTime = EchoReplyV4->RoundTripTime;
AddressInfo = &EchoReplyV4->Address;