From 70420029031c2417713668a3f3866583eb342ac7 Mon Sep 17 00:00:00 2001 From: caitsith2 Date: Mon, 27 Aug 2018 21:07:40 -0700 Subject: [PATCH] Retrun 0 bytes for reads way past end of file. --- LibHac.Nand/DiscUtils.Fat/ClusterStream.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibHac.Nand/DiscUtils.Fat/ClusterStream.cs b/LibHac.Nand/DiscUtils.Fat/ClusterStream.cs index f0756596..218e0d63 100644 --- a/LibHac.Nand/DiscUtils.Fat/ClusterStream.cs +++ b/LibHac.Nand/DiscUtils.Fat/ClusterStream.cs @@ -115,7 +115,7 @@ namespace DiscUtils.Fat if (_position > _length) { - throw new IOException("Attempt to read beyond end of file"); + return 0; } if (count < 0)