Roderick Colenbrander : ws2_32: Use winediag for socket failures.
Alexandre Julliard
julliard at winehq.org
Tue Dec 8 11:10:38 CST 2009
Module: wine
Branch: master
Commit: 6a8aae0becf4c9ab801ca3f13581cc02107b2fb1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6a8aae0becf4c9ab801ca3f13581cc02107b2fb1
Author: Roderick Colenbrander <thunderbird2k at gmail.com>
Date: Tue Dec 8 14:09:05 2009 +0100
ws2_32: Use winediag for socket failures.
---
dlls/ws2_32/socket.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index df9c37d..02d8af5 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -166,6 +166,7 @@
#endif
WINE_DEFAULT_DEBUG_CHANNEL(winsock);
+WINE_DECLARE_DEBUG_CHANNEL(winediag);
/* critical section to protect some non-reentrant net function */
static CRITICAL_SECTION csWSgetXXXbyYYY;
@@ -4322,11 +4323,9 @@ SOCKET WINAPI WSASocketW(int af, int type, int protocol,
if (GetLastError() == WSAEACCES) /* raw socket denied */
{
if (type == SOCK_RAW)
- MESSAGE("WARNING: Trying to create a socket of type SOCK_RAW, this"
- " will fail unless you have special permissions.\n");
+ ERR_(winediag)("Failed to create a socket of type SOCK_RAW, this requires special permissions.\n");
else
- MESSAGE("WS_SOCKET: Failed to create socket, this requires"
- " special permissions.\n");
+ ERR_(winediag)("Failed to create socket, this requires special permissions.\n");
SetLastError(WSAESOCKTNOSUPPORT);
}
More information about the wine-cvs
mailing list