mirror of
https://github.com/akuker/RASCSI.git
synced 2024-09-11 18:56:58 +00:00
Update disk.cpp - modesense10 command length (#464)
Modesense(10) has 2 length bytes, therefore the size adjustment must be 2, not 1!
This commit is contained in:
parent
641e7df64c
commit
a3645dfecc
@ -917,8 +917,8 @@ int Disk::ModeSense10(const DWORD *cdb, BYTE *buf)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// final setting of mode data length
|
// final setting of mode data length
|
||||||
buf[0] = (size - 1) >> 8;
|
buf[0] = (size - 2) >> 8;
|
||||||
buf[1] = size - 1;
|
buf[1] = size - 2;
|
||||||
|
|
||||||
// Unsupported page
|
// Unsupported page
|
||||||
if (!valid) {
|
if (!valid) {
|
||||||
|
Loading…
Reference in New Issue
Block a user