Commit 6a8aae0b authored by Roderick Colenbrander's avatar Roderick Colenbrander Committed by Alexandre Julliard

ws2_32: Use winediag for socket failures.

parent 92352495
......@@ -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);
}
......
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