Wireshark-commits: [Wireshark-commits] master fd30adc: Dumpcap: Call WSAStartup+WSACleanup once.

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Wed, 01 May 2019 23:58:48 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=fd30adca44fb4d4c4e607ccab0a1207141aa0257
Submitter: "Gerald Combs <gerald@xxxxxxxxxxxxx>"
Changed: branch: master
Repository: wireshark

Commits:

fd30adc by Gerald Combs (gerald@xxxxxxxxxxxxx):

    Dumpcap: Call WSAStartup+WSACleanup once.
    
    We only need to call WSAStartup and WSACleanup once, so do so. If we
    encounter an error, report it using win32strerror.
    
    Use win32strerror instead of FormatMessage in cap_open_socket.
    
    Change-Id: I59868d6baecb1dfc98946dc68c2346b79436d2c7
    Reviewed-on: https://code.wireshark.org/review/33044
    Petri-Dish: Gerald Combs <gerald@xxxxxxxxxxxxx>
    Tested-by: Petri Dish Buildbot
    Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
    Reviewed-by: Gerald Combs <gerald@xxxxxxxxxxxxx>
    

Actions performed:

    from  f0a3431   Don't use the result of please_report_bug() as a format string.
     add  fd30adc   Dumpcap: Call WSAStartup+WSACleanup once.


Summary of changes:
 dumpcap.c | 83 +++++++--------------------------------------------------------
 1 file changed, 9 insertions(+), 74 deletions(-)