Actually don't dispose hawkfile stream after ReadAllBytes()

fixes a30c0efb78
This commit is contained in:
CasualPokePlayer 2025-01-10 15:52:35 -08:00
parent a30c0efb78
commit 633681804d
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ namespace BizHawk.Common
/// <summary>attempts to read all the content from the file</summary>
public byte[] ReadAllBytes()
{
using var stream = GetStream();
var stream = GetStream();
using var ms = new MemoryStream((int) stream.Length);
stream.CopyTo(ms);
return ms.GetBuffer();