From 27eaac6a34306452b613fe6c866d993efd7dcdb6 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Fri, 7 Sep 2001 15:26:18 +0000 Subject: [PATCH] Convert the socket type (necessary on Solaris). --- dlls/winsock/socket.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/dlls/winsock/socket.c b/dlls/winsock/socket.c index 1b4a11d006..415ea8309e 100644 --- a/dlls/winsock/socket.c +++ b/dlls/winsock/socket.c @@ -2175,9 +2175,15 @@ SOCKET WINAPI WSOCK32_socket(INT af, INT type, INT protocol) /* check the socket type */ switch(type) { - case SOCK_STREAM: - case SOCK_DGRAM: - case SOCK_RAW: break; + case WS_SOCK_STREAM: + type=SOCK_STREAM; + break; + case WS_SOCK_DGRAM: + type=SOCK_STREAM; + break; + case WS_SOCK_RAW: + type=SOCK_STREAM; + break; default: SetLastError(WSAESOCKTNOSUPPORT); return INVALID_SOCKET; } -- 2.32.0.93.g670b81a890