VirtualBox

Changeset 43571 in vbox


Ignore:
Timestamp:
Oct 8, 2012 5:20:31 PM (12 years ago)
Author:
vboxsync
Message:

Revert accidental commit

File:
1 edited

Legend:

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

    r43570 r43571  
    35243524            {
    35253525                case 0x0: /* All types. */
    3526                 {
    3527                     uint32_t iLbaStart;
    3528 
    3529                     if (pbPacket[0] == SCSI_READ_CD)
    3530                         iLbaStart = atapiBE2H_U32(&pbPacket[2]);
    3531                     else
    3532                         iLbaStart = ataMSF2LBA(&pbPacket[3])
    3533 
    3534                     if (s->pTrackList)
    3535                         s->cbATAPISector = ATAPIPassthroughTrackListGetSectorSizeFromLba(pTrackList, iLbaStart);
     3526                    if (ASMAtomicReadU32(&s->MediaTrackType) == ATA_MEDIA_TYPE_CDDA)
     3527                        s->cbATAPISector = 2352;
    35363528                    else
    35373529                        s->cbATAPISector = 2048; /* Might be incorrect if we couldn't determine the type. */
    35383530                    break;
    3539                 }
    35403531                case 0x1: /* CD-DA */
    35413532                    s->cbATAPISector = 2352;
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