Commit 715a3988 authored by Roderick Colenbrander's avatar Roderick Colenbrander Committed by Alexandre Julliard

iphlpapi: Use winediag for icmp failure.

parent 6a8aae0b
......@@ -99,6 +99,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(icmp);
WINE_DECLARE_DEBUG_CHANNEL(winediag);
typedef struct {
......@@ -153,7 +154,7 @@ HANDLE WINAPI IcmpCreateFile(VOID)
int sid=socket(AF_INET,SOCK_RAW,IPPROTO_ICMP);
if (sid < 0) {
MESSAGE("WARNING: Trying to use ICMP (network ping) will fail unless running as root\n");
ERR_(winediag)("Failed to use ICMP (network ping), this requires special permissions.\n");
SetLastError(ERROR_ACCESS_DENIED);
return INVALID_HANDLE_VALUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment