diff --git a/src/scsi_cdrom.c b/src/scsi_cdrom.c index 9ce15a9b5..2ec9c829e 100644 --- a/src/scsi_cdrom.c +++ b/src/scsi_cdrom.c @@ -1561,10 +1561,10 @@ SCSIOut: max_length <<= 8; max_length |= SCSIDevices[id].Cdb[8]; - track = ((uint32_t) idebufferb[2]) << 24; - track |= ((uint32_t) idebufferb[3]) << 16; - track |= ((uint32_t) idebufferb[4]) << 8; - track |= (uint32_t) idebufferb[5]; + track = ((uint32_t) SCSIDevices[id].Cdb[2]) << 24; + track |= ((uint32_t) SCSIDevices[id].Cdb[3]) << 16; + track |= ((uint32_t) SCSIDevices[id].Cdb[4]) << 8; + track |= (uint32_t) SCSIDevices[id].Cdb[5]; if (cdrom->read_track_information) {