VirtualBox

Changeset 32535 in vbox


Ignore:
Timestamp:
Sep 15, 2010 5:57:51 PM (14 years ago)
Author:
vboxsync
Message:

VBoxService/VMInfo: Don't bail out if network is not up yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp

    r31941 r32535  
    370370    if (sd == SOCKET_ERROR) /* Socket invalid. */
    371371    {
    372         VBoxServiceError("VMInfo/Network: Failed to get a socket: Error %d\n", WSAGetLastError());
     372        int wsaErr = WSAGetLastError();
     373        /* Don't complain/bail out with an error if network stack is not up; can happen
     374         * on NT4 due to start up when not connected shares dialogs pop up. */
     375        if (WSAENETDOWN == wsaErr)
     376        {
     377            VBoxServiceVerbose(0, "VMInfo/Network: Network is not up yet.\n");
     378            wsaErr = VINF_SUCCESS;
     379        }
     380        else
     381            VBoxServiceError("VMInfo/Network: Failed to get a socket: Error %d\n", wsaErr);
    373382        if (pAdpInfo)
    374383            RTMemFree(pAdpInfo);
    375         return RTErrConvertFromWin32(WSAGetLastError());
     384        return RTErrConvertFromWin32(wsaErr);
    376385    }
    377386
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