Commit f438e524 authored by Ben Hodgetts's avatar Ben Hodgetts Committed by Alexandre Julliard

ws2_32: Don't tell users to run Wine as root when sockets not creatable.

parent 72e20d8f
......@@ -3767,9 +3767,11 @@ 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, will fail unless running as root\n");
MESSAGE("WARNING: Trying to create a socket of type SOCK_RAW, this"
" will fail unless you have special permissions.\n");
else
MESSAGE("WS_SOCKET: not enough privileges to create socket, try running as root\n");
MESSAGE("WS_SOCKET: 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