diff options
author | Gerald Combs <gerald@wireshark.org> | 2019-04-30 15:48:06 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2019-05-01 17:51:59 +0000 |
commit | cec5991f40887b4b2add594e7d82857d475224aa (patch) | |
tree | 5f4e0dc3846b2cce60c0f22bef7c111236b84957 /tshark.c | |
parent | 3a2e290c331f03b2467d49d5c04151aab9f1a4d9 (diff) |
Windows: Modernize our WSAStartup usage.
Make sure we link each application that calls WSAStartup with ws2_32.lib.
Pass version 2.2 to WSAStartup. Wikipedia says it was introduced in 1996,
so we should be OK.
Ping-Bug: 15711
Change-Id: I431839e930e7c646669af7373789640b5180ec28
Reviewed-on: https://code.wireshark.org/review/33033
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Tomasz Moń <desowin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'tshark.c')
-rw-r--r-- | tshark.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1786,7 +1786,7 @@ main(int argc, char *argv[]) #ifdef _WIN32 /* Start windows sockets */ - result = WSAStartup( MAKEWORD( 1, 1 ), &wsaData ); + result = WSAStartup( MAKEWORD( 2, 2 ), &wsaData ); if (result != 0) { exit_status = INIT_FAILED; |