mirror of
https://github.com/akuker/RASCSI.git
synced 2024-08-20 13:29:27 +00:00
Update scsihd.cpp Inquiry data length (#463)
The inquiry command only returns up to the revision information, so don't return more data than this. This gives a total of 36 bytes returned, which is the required minimum in the spec.
This commit is contained in:
parent
133eab068c
commit
641e7df64c
@ -145,7 +145,7 @@ int SCSIHD::Inquiry(const DWORD *cdb, BYTE *buf)
|
||||
buf[1] = IsRemovable() ? 0x80 : 0x00;
|
||||
buf[2] = 0x02;
|
||||
buf[3] = 0x02;
|
||||
buf[4] = 122 + 3; // Value close to real HDD
|
||||
buf[4] = 28 + 3; // Value close to real HDD
|
||||
|
||||
// Padded vendor, product, revision
|
||||
memcpy(&buf[8], GetPaddedName().c_str(), 28);
|
||||
|
Loading…
Reference in New Issue
Block a user