VirtualBox

Changeset 8605 in vbox for trunk


Ignore:
Timestamp:
May 5, 2008 3:53:09 PM (17 years ago)
Author:
vboxsync
Message:

Another parameter check

File:
1 edited

Legend:

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

    r8603 r8605  
    299299STDMETHODIMP SATAController::SetIDEEmulationPort(LONG DevicePosition, LONG aPortNumber)
    300300{
     301    if ((aPortNumber < 0) || (aPortNumber >= 30))
     302        return setError (E_INVALIDARG,
     303            tr ("Invalid port number: %l (must be in range [%lu, %lu])"),
     304                aPortCount, 0, 29);
     305
    301306    AutoCaller autoCaller (this);
    302307    CheckComRCReturnRC (autoCaller.rc());
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