mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[AaruFormat] Expect other response from library when reading sector tags
This commit is contained in:
@@ -176,7 +176,7 @@ public sealed partial class AaruFormat
|
||||
|
||||
Status res = aaruf_read_sector_tag(_context, sectorAddress, false, buffer, ref length, tag);
|
||||
|
||||
if(res != Status.BufferTooSmall) return StatusToErrorNumber(res);
|
||||
if(res != Status.BufferTooSmall && res != Status.IncorrectDataSize) return StatusToErrorNumber(res);
|
||||
|
||||
buffer = new byte[length];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user