VirtualBox

Changeset 2024 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 11, 2007 7:47:59 AM (18 years ago)
Author:
vboxsync
Message:

Allow disabling of multi-sector read commands.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevATA.cpp

    r1795 r2024  
    30583058            break;
    30593059        case ATA_SET_MULTIPLE_MODE:
    3060             if (s->uATARegNSector > ATA_MAX_MULT_SECTORS ||
    3061                 s->uATARegNSector == 0 ||
    3062                 (s->uATARegNSector & (s->uATARegNSector - 1)) != 0)
     3060            if (    s->uATARegNSector != 0
     3061                &&  (   s->uATARegNSector > ATA_MAX_MULT_SECTORS
     3062                     || (s->uATARegNSector & (s->uATARegNSector - 1)) != 0))
    30633063            {
    30643064                ataCmdError(s, ABRT_ERR);
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