VirtualBox

Changeset 21779 in vbox


Ignore:
Timestamp:
Jul 24, 2009 10:13:27 AM (16 years ago)
Author:
vboxsync
Message:

ConsoleImpl.cpp: Allowing attachment change even if they are of same type.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r21724 r21779  
    33533353
    33543354#ifdef VBOX_DYNAMIC_NET_ATTACH
    3355             if (VBOX_SUCCESS (vrc) && !(eAttachmentType == meAttachmentType[ulInstance]))
     3355            if (VBOX_SUCCESS (vrc))
    33563356                rc = doNetworkAdapterChange(pszAdapterName, ulInstance, 0, aNetworkAdapter);
    33573357#endif /* VBOX_DYNAMIC_NET_ATTACH */
     
    34643464    AssertReturn (pThis, VERR_INVALID_PARAMETER);
    34653465
    3466     AssertMsg (   (!strcmp (pszDevice, "pcnet") && uLun == 0 && uInstance < 8)
    3467                || (!strcmp (pszDevice, "e1000") && uLun == 0 && uInstance < 8),
     3466    AssertMsg (   (!strcmp (pszDevice, "pcnet") && uLun == 0 && uInstance < SchemaDefs::NetworkAdapterCount)
     3467               || (!strcmp (pszDevice, "e1000") && uLun == 0 && uInstance < SchemaDefs::NetworkAdapterCount),
    34683468               ("pszDevice=%s uLun=%d uInstance=%d\n", pszDevice, uLun, uInstance));
    34693469    Log(("pszDevice=%s uLun=%d uInstance=%d\n", pszDevice, uLun, uInstance));
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