VirtualBox

Ignore:
Timestamp:
Aug 30, 2010 10:01:36 AM (14 years ago)
Author:
vboxsync
Message:

CD/Passthrough: Prevent the host from crashing when trying to access a audio CD with passthrough enabled

File:
1 edited

Legend:

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

    r32076 r32082  
    35103510            case SCSI_READ_CD:
    35113511                iATAPILBA = ataBE2H_U32(pAhciPortTaskState->aATAPICmd + 2);
    3512                 cSectors = ataBE2H_U24(pAhciPortTaskState->aATAPICmd + 6) / pAhciPortTaskState->cbATAPISector;
     3512                cSectors = ataBE2H_U24(pAhciPortTaskState->aATAPICmd + 6);
    35133513                break;
    35143514            case SCSI_READ_CD_MSF:
     
    41974197        case SCSI_READ_CD:
    41984198            pAhciPortTaskState->cbATAPISector = 2048; /**< @todo this size is not always correct */
    4199             cbTransfer = ataBE2H_U24(pbPacket + 6) / pAhciPortTaskState->cbATAPISector * pAhciPortTaskState->cbATAPISector;
     4199            cbTransfer = ataBE2H_U24(pbPacket + 6) * pAhciPortTaskState->cbATAPISector;
    42004200            enmTxDir = AHCITXDIR_READ;
    42014201            goto sendcmd;
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