|
@@ -242,8 +242,8 @@ static const uint8_t SequentialDeviceConfigPage[] =
|
|
|
static const uint8_t AppleVendorPage[] =
|
|
static const uint8_t AppleVendorPage[] =
|
|
|
{
|
|
{
|
|
|
0x30, // Page code
|
|
0x30, // Page code
|
|
|
-23, // Page length
|
|
|
|
|
-'A','P','P','L','E',' ','C','O','M','P','U','T','E','R',',',' ','I','N','C',' ',' ',' ',0x00
|
|
|
|
|
|
|
+0x16, // Page length
|
|
|
|
|
+'A','P','P','L','E',' ','C','O','M','P','U','T','E','R',',',' ','I','N','C',' ',' ',' '
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
static void pageIn(int pc, int dataIdx, const uint8_t* pageData, int pageLen)
|
|
static void pageIn(int pc, int dataIdx, const uint8_t* pageData, int pageLen)
|
|
@@ -516,10 +516,8 @@ static void doModeSense(
|
|
|
|
|
|
|
|
idx += modeSenseCDCapabilitiesPage(pc, idx, pageCode, &pageFound);
|
|
idx += modeSenseCDCapabilitiesPage(pc, idx, pageCode, &pageFound);
|
|
|
|
|
|
|
|
- if ((
|
|
|
|
|
- (scsiDev.target->cfg->quirks == S2S_CFG_QUIRKS_APPLE) ||
|
|
|
|
|
- (idx + sizeof(AppleVendorPage) <= allocLength)
|
|
|
|
|
- ) &&
|
|
|
|
|
|
|
+ if ((scsiDev.target->cfg->quirks == S2S_CFG_QUIRKS_APPLE) &&
|
|
|
|
|
+ (idx + sizeof(AppleVendorPage) <= allocLength) &&
|
|
|
(pageCode == 0x30 || pageCode == 0x3F))
|
|
(pageCode == 0x30 || pageCode == 0x3F))
|
|
|
{
|
|
{
|
|
|
pageFound = 1;
|
|
pageFound = 1;
|