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
|
@ -65,7 +65,7 @@ namespace Ryujinx.UI.App.Common
|
|||
Stream resourceStream = Assembly.GetCallingAssembly().GetManifestResourceStream(resourceName);
|
||||
byte[] resourceByteArray = new byte[resourceStream.Length];
|
||||
|
||||
resourceStream.Read(resourceByteArray);
|
||||
resourceStream.ReadExactly(resourceByteArray);
|
||||
|
||||
return resourceByteArray;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue