VirtualBox

儲存庫 vbox 的更動 42875


忽略:
時間撮記:
2012-8-20 上午02:11:05 (12 年 以前)
作者:
vboxsync
訊息:

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

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • 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
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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