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:
Pacjunk 2021-11-14 20:41:34 +11:00 committed by GitHub
parent 641e7df64c
commit a3645dfecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -917,8 +917,8 @@ int Disk::ModeSense10(const DWORD *cdb, BYTE *buf)
}
// final setting of mode data length
buf[0] = (size - 1) >> 8;
buf[1] = size - 1;
buf[0] = (size - 2) >> 8;
buf[1] = size - 2;
// Unsupported page
if (!valid) {