mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Fix misdetecting optical discs as flash drives.
This commit is contained in:
@@ -1029,7 +1029,7 @@ namespace Aaru.CommonTypes.Structs.Devices.ATA
|
||||
|
||||
static string DescrambleATAString(IList<byte> buffer, int offset, int length)
|
||||
{
|
||||
byte[] outbuf = buffer[(offset + length) - 1] != 0x00 ? new byte[length + 1] : new byte[length];
|
||||
byte[] outbuf = buffer[offset + length - 1] != 0x00 ? new byte[length + 1] : new byte[length];
|
||||
|
||||
for(int i = 0; i < length; i += 2)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user