[AaruFormat] Expect other response from library when reading sector tags

This commit is contained in:
2025-10-20 15:10:55 +01:00
parent 7c5b22a773
commit 9454915593

View File

@@ -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];