Commit 27eaac6a authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

Convert the socket type (necessary on Solaris).

parent 2356fbce
...@@ -2175,9 +2175,15 @@ SOCKET WINAPI WSOCK32_socket(INT af, INT type, INT protocol) ...@@ -2175,9 +2175,15 @@ SOCKET WINAPI WSOCK32_socket(INT af, INT type, INT protocol)
/* check the socket type */ /* check the socket type */
switch(type) switch(type)
{ {
case SOCK_STREAM: case WS_SOCK_STREAM:
case SOCK_DGRAM: type=SOCK_STREAM;
case SOCK_RAW: break; break;
case WS_SOCK_DGRAM:
type=SOCK_STREAM;
break;
case WS_SOCK_RAW:
type=SOCK_STREAM;
break;
default: SetLastError(WSAESOCKTNOSUPPORT); default: SetLastError(WSAESOCKTNOSUPPORT);
return INVALID_SOCKET; return INVALID_SOCKET;
} }
......
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