Avoid inexact read with 'Stream.Read' (#6847)
This commit is contained in:
parent
971d24aef0
commit
888402ecaf
7 changed files with 8 additions and 8 deletions
|
@ -151,7 +151,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||
reader.ReadInt64(); // Padding
|
||||
|
||||
byte[] input = new byte[stream.Length - stream.Position];
|
||||
stream.Read(input, 0, input.Length);
|
||||
stream.ReadExactly(input, 0, input.Length);
|
||||
|
||||
uint inputOffset = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue