diff options
Diffstat (limited to 'plugins/Ping/src/icmp.cpp')
-rw-r--r-- | plugins/Ping/src/icmp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Ping/src/icmp.cpp b/plugins/Ping/src/icmp.cpp index 26e7379845..6081ecf21f 100644 --- a/plugins/Ping/src/icmp.cpp +++ b/plugins/Ping/src/icmp.cpp @@ -58,10 +58,10 @@ bool ICMP::ping(char *host, ICMP_ECHO_REPLY &reply) if (hIP == INVALID_HANDLE_VALUE)
return false;
- DWORD rep_cnt = IcmpSendEcho2(hIP, nullptr, nullptr, nullptr, address, data, sizeof(data), nullptr, buff, BUFFER_SIZE, timeout);
+ uint32_t rep_cnt = IcmpSendEcho2(hIP, nullptr, nullptr, nullptr, address, data, sizeof(data), nullptr, buff, BUFFER_SIZE, timeout);
if (rep_cnt == 0)
{
- DWORD code = GetLastError();
+ uint32_t code = GetLastError();
if (code != 11010)
{
char winmsg[512], msg[1024];
|