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 /extcap/randpktdump.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 'extcap/randpktdump.c')
-rw-r--r-- | extcap/randpktdump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extcap/randpktdump.c b/extcap/randpktdump.c index 28de98f64f..b4eec55da6 100644 --- a/extcap/randpktdump.c +++ b/extcap/randpktdump.c @@ -279,7 +279,7 @@ int main(int argc, char *argv[]) } #ifdef _WIN32 - result = WSAStartup(MAKEWORD(1,1), &wsaData); + result = WSAStartup(MAKEWORD(2, 2), &wsaData); if (result != 0) { g_warning("ERROR: WSAStartup failed with error: %d", result); goto end; |