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:
Pacjunk
2021-11-14 20:41:10 +11:00
committed by GitHub
parent 133eab068c
commit 641e7df64c
+1 -1
View File
@@ -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);