diff --git a/src/BizHawk.Common/HawkFile/HawkFile.cs b/src/BizHawk.Common/HawkFile/HawkFile.cs index 05628e7792..ee2a6d3838 100644 --- a/src/BizHawk.Common/HawkFile/HawkFile.cs +++ b/src/BizHawk.Common/HawkFile/HawkFile.cs @@ -274,7 +274,7 @@ namespace BizHawk.Common /// attempts to read all the content from the file public byte[] ReadAllBytes() { - using var stream = GetStream(); + var stream = GetStream(); using var ms = new MemoryStream((int) stream.Length); stream.CopyTo(ms); return ms.GetBuffer();