VirtualBox

Changeset 59905 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Mar 2, 2016 10:50:12 PM (9 years ago)
Author:
vboxsync
Message:

DrvTCP: On Windows call WSAStartup() ourselves, don't rely on another
component (usually DrvNAT) doing it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Serial/DrvTCP.cpp

    r57358 r59905  
    349349    PDRVTCP pThis = PDMINS_2_DATA(pDrvIns, PDRVTCP);
    350350    PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
     351
     352#ifdef RT_OS_WINDOWS
     353    {
     354        WSADATA wsaData;
     355        int err;
     356
     357        err = WSAStartup(MAKEWORD(2,2), &wsaData);
     358        if (err != 0)
     359        {
     360            LogRel(("DrvTCP: Failed to initialize Winsock, error %d\n", err));
     361            /* XXX: let socket creation fail below */
     362        }
     363    }
     364#endif
    351365
    352366    /*
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette