From fb3a266c865999d7968e48c1c8285e81129cba7e Mon Sep 17 00:00:00 2001 From: Troy Date: Wed, 12 Oct 2022 21:08:47 -0400 Subject: [PATCH] Report error for READ_DVD_STRUCTURE fixes issues with drivers getting confused about the optical image file --- src/BlueSCSI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BlueSCSI.cpp b/src/BlueSCSI.cpp index 9097abf..cb91f43 100644 --- a/src/BlueSCSI.cpp +++ b/src/BlueSCSI.cpp @@ -1999,7 +1999,7 @@ static byte onReadDiscInformation(SCSI_DEVICE *dev, const byte *cdb) static byte onReadDVDStructure(SCSI_DEVICE *dev, const byte *cdb) { dev->m_senseKey = SCSI_SENSE_ILLEGAL_REQUEST; - dev->m_additional_sense_code = SCSI_ASC_CANNOT_READ_MEDIUM_INCOMPATIBLE_FORMAT; + dev->m_additional_sense_code = SCSI_ASC_INVALID_OPERATION_CODE; return SCSI_STATUS_CHECK_CONDITION; }