VirtualBox

Changeset 8570 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
May 5, 2008 12:36:54 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
30485
Message:

Main: Assert if the attached hard disk is SATA but aDevice is not zero

File:
1 edited

Legend:

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

    r8484 r8570  
    16551655    if (id.isEmpty() || aBus == StorageBus_Null)
    16561656        return E_INVALIDARG;
     1657
     1658    /* The device property is not used for SATA yet. Thus it is always zero. */
     1659    if ((aBus == StorageBus_SATA) && (aDevice != 0))
     1660        AssertMsgFailed(("Invalid aDevice %d\n", aDevice));
    16571661
    16581662    AutoCaller autoCaller (this);
Note: See TracChangeset for help on using the changeset viewer.

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