VirtualBox

Changeset 18445 in vbox for trunk/src


Ignore:
Timestamp:
Mar 28, 2009 3:16:52 AM (16 years ago)
Author:
vboxsync
Message:

DrvHostDVD: better fix.

File:
1 edited

Legend:

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

    r18444 r18445  
    599599    Req.spt.TimeOutValue = (cTimeoutMillies + 999) / 1000; /* Convert to seconds */
    600600    Assert(cbSense <= sizeof(Req.aSense));
    601     Req.spt.SenseInfoLength = (UCHAR)cbSense;
     601    Req.spt.SenseInfoLength = (UCHAR)RT_MIN(255, cbSense);
    602602    Req.spt.SenseInfoOffset = RT_OFFSETOF(struct _REQ, aSense);
    603603    if (DeviceIoControl((HANDLE)pThis->FileDevice, IOCTL_SCSI_PASS_THROUGH_DIRECT,
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