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

This commit is contained in:
Ben Hodgetts 2007-06-30 00:27:59 +01:00 committed by Alexandre Julliard
parent 72e20d8f57
commit f438e524e7
1 changed files with 4 additions and 2 deletions

View File

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