ping: Enable compilation with long types.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eric Pouech 2022-02-04 09:57:03 +01:00 committed by Alexandre Julliard
parent f658d9d178
commit eb1ff55636
2 changed files with 1 additions and 2 deletions

View File

@ -1,4 +1,3 @@
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = ping.exe
IMPORTS = ws2_32 iphlpapi

View File

@ -184,7 +184,7 @@ int __cdecl main(int argc, char** argv)
{
reply = (ICMP_ECHO_REPLY *) reply_buffer;
if (reply->RoundTripTime >= 1)
sprintf(rtt, "=%d", reply->RoundTripTime);
sprintf(rtt, "=%ld", reply->RoundTripTime);
else
strcpy(rtt, "<1");
printf("Reply from %s: bytes=%d time%sms TTL=%d\n", ip, l,