diff options
Diffstat (limited to 'lib/easy.c')
-rw-r--r-- | lib/easy.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/easy.c b/lib/easy.c index a0def11e6..d79dbacef 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -94,7 +94,7 @@ static CURLcode win32_init(void) WORD wVersionRequested; WSADATA wsaData; int err; - wVersionRequested = MAKEWORD(1, 1); + wVersionRequested = MAKEWORD(2, 0); err = WSAStartup(wVersionRequested, &wsaData); @@ -103,14 +103,14 @@ static CURLcode win32_init(void) /* winsock.dll. */ return CURLE_FAILED_INIT; - /* Confirm that the Windows Sockets DLL supports 1.1.*/ + /* Confirm that the Windows Sockets DLL supports 2.0.*/ /* Note that if the DLL supports versions greater */ - /* than 1.1 in addition to 1.1, it will still return */ - /* 1.1 in wVersion since that is the version we */ + /* than 2.0 in addition to 2.0, it will still return */ + /* 2.0 in wVersion since that is the version we */ /* requested. */ - if ( LOBYTE( wsaData.wVersion ) != 1 || - HIBYTE( wsaData.wVersion ) != 1 ) { + if ( LOBYTE( wsaData.wVersion ) != 2 || + HIBYTE( wsaData.wVersion ) != 0 ) { /* Tell the user that we couldn't find a useable */ /* winsock.dll. */ |