Module: wine Branch: master Commit: 6a8aae0becf4c9ab801ca3f13581cc02107b2fb1 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6a8aae0becf4c9ab801ca3f135...
Author: Roderick Colenbrander thunderbird2k@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); }