VirtualBox

Ignore:
Timestamp:
Nov 10, 2009 1:51:14 PM (15 years ago)
Author:
vboxsync
Message:

GUI: added assertion to GUI so that VBoxSVC wont assert in SystemProperties::GetMaxPortCountForStorageBus() during takeSnapshot()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    r24301 r24550  
    11621162QString VBoxGlobal::toString (StorageSlot aSlot) const
    11631163{
     1164    switch (aSlot.bus)
     1165    {
     1166        case KStorageBus_IDE:
     1167        case KStorageBus_SATA:
     1168        case KStorageBus_SCSI:
     1169        case KStorageBus_Floppy:
     1170            break;
     1171
     1172        default:
     1173        {
     1174            AssertMsgFailed (("Invalid bus type %d\n", aSlot.bus));
     1175            break;
     1176        }
     1177    }
     1178
    11641179    int maxPort = virtualBox().GetSystemProperties().GetMaxPortCountForStorageBus (aSlot.bus);
    11651180    int maxDevice = virtualBox().GetSystemProperties().GetMaxDevicesPerPortForStorageBus (aSlot.bus);
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