From f4b5ac2d164f6c746c1026b65f8e0263a343b816 Mon Sep 17 00:00:00 2001 From: dingusdev <52434309+dingusdev@users.noreply.github.com> Date: Mon, 25 Nov 2024 08:11:11 -0700 Subject: [PATCH] Minor fix to page 0x31 --- devices/storage/cdromdrive.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/devices/storage/cdromdrive.cpp b/devices/storage/cdromdrive.cpp index 9e95898..98f3c15 100644 --- a/devices/storage/cdromdrive.cpp +++ b/devices/storage/cdromdrive.cpp @@ -146,6 +146,8 @@ uint32_t CdromDrive::mode_sense_ex(bool is_sense_6, uint8_t* cmd_ptr, uint8_t* d resp_ptr[11] = 'A'; resp_ptr[12] = 'p'; resp_ptr[13] = 'p'; + data_ptr[1] += 2; // adjust overall length + break; default: LOG_F(ERROR, "ATAPI CD-ROM: Invalid Page Code 0x%x", page_code); this->set_error(ScsiSense::ILLEGAL_REQ, ScsiError::INVALID_CDB);