Fix misdetecting optical discs as flash drives.

This commit is contained in:
2020-12-29 19:37:16 +00:00
parent 16780e9ba3
commit 069a2e39cc
3 changed files with 9 additions and 7 deletions

View File

@@ -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)
{