VirtualBox

Changeset 38224 in vbox


Ignore:
Timestamp:
Jul 28, 2011 2:53:13 PM (13 years ago)
Author:
vboxsync
Message:

VBoxService/VMInfo-win: Don't bail out if there are no network interfaces present.

File:
1 edited

Legend:

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

    r38129 r38224  
    388388        }
    389389    }
     390    else if (dwRet == ERROR_NO_DATA)
     391    {
     392        VBoxServiceVerbose(3, "VMInfo/Network: No network adapters available\n");
     393
     394        /* If no network adapters available / present in the
     395         * system we pretend success to not bail out too early. */
     396        dwRet = ERROR_SUCCESS;
     397    }
     398
    390399    if (dwRet != ERROR_SUCCESS)
    391400    {
     
    686695        VBoxServicePropCacheUpdate(&g_VMInfoPropCache, szPropPath, fIfUp ? "Up" : "Down");
    687696        cIfacesReport++;
    688     }
     697    } /* For all interfaces */
    689698
    690699    close(sd);
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