Roderick Colenbrander : iphlpapi: Use winediag for icmp failure.
Alexandre Julliard
julliard at winehq.org
Tue Dec 8 11:10:38 CST 2009
Module: wine
Branch: master
Commit: 715a3988998ffabd3eabb3093a3765b47b5b0ad2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=715a3988998ffabd3eabb3093a3765b47b5b0ad2
Author: Roderick Colenbrander <thunderbird2k at gmail.com>
Date: Tue Dec 8 14:14:21 2009 +0100
iphlpapi: Use winediag for icmp failure.
---
dlls/iphlpapi/icmp.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/iphlpapi/icmp.c b/dlls/iphlpapi/icmp.c
index ca965fb..d8ee101 100644
--- a/dlls/iphlpapi/icmp.c
+++ b/dlls/iphlpapi/icmp.c
@@ -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;
}
More information about the wine-cvs
mailing list