VirtualBox

Changeset 12727 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
Sep 25, 2008 12:35:35 PM (16 years ago)
Author:
vboxsync
Message:

fixed passthrough on Windows hosts

File:
1 edited

Legend:

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

    r12515 r12727  
    545545    {
    546546        SCSI_PASS_THROUGH_DIRECT spt;
    547         uint8_t aSense[18];
     547        uint8_t aSense[64];
    548548    } Req;
    549549    DWORD cbReturned = 0;
     
    592592            memset(pabSense, '\0', cbSense);
    593593        /* Windows shares the property of not properly reflecting the actually
    594          * transferred data size. See above. Assume that everything worked ok. */
    595         rc = VINF_SUCCESS;
     594         * transferred data size. See above. Assume that everything worked ok.
     595         * Except if there are sense information. */
     596        rc = (pabSense[2] & 0x0f) == SCSI_SENSE_NONE
     597                 ? VINF_SUCCESS
     598                 : VERR_DEV_IO_ERROR;
    596599    }
    597600    else
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