VirtualBox

Changeset 42875 in vbox for trunk/src


Ignore:
Timestamp:
Aug 20, 2012 2:11:05 AM (12 years ago)
Author:
vboxsync
Message:

Machine::GetNetworkAdapter: More details. (Testsuite doesn't check for E_INVALIDARG, btw.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r42861 r42875  
    46784678{
    46794679    CheckComArgOutPointerValid(adapter);
    4680     /* Do not assert in debug builds here in case someone iterates over the
    4681      * slots and relies on the E_INVALIDARG error. */
     4680    /* Do not assert if slot is out of range, just return the advertised
     4681       status.  testdriver/vbox.py triggers this in logVmInfo. */
    46824682    if (slot >= mNetworkAdapters.size())
    46834683        return setError(E_INVALIDARG,
    4684                         tr("No network adapter in slot %RU32 found (total %RU32 adapters)"),
     4684                        tr("No network adapter in slot %RU32 (total %RU32 adapters)"),
    46854685                        slot, mNetworkAdapters.size());
    46864686
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