mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Use Stream extension to ensure read operations return the requested number of bytes (unless EOF arrives first).
This commit is contained in:
@@ -137,7 +137,7 @@ public sealed partial class XboxFatPlugin
|
||||
|
||||
ms.Position = offsetInCluster;
|
||||
buf = new byte[size];
|
||||
ms.Read(buf, 0, (int)size);
|
||||
ms.EnsureRead(buf, 0, (int)size);
|
||||
|
||||
return ErrorNumber.NoError;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user