From 06fda75ab90688efc1549a186f710574485f0de9 Mon Sep 17 00:00:00 2001 From: Alex Barney Date: Mon, 11 Mar 2019 22:39:41 -0500 Subject: [PATCH] Fix NullFile not having an access mode set --- src/LibHac/IO/NullFile.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/LibHac/IO/NullFile.cs b/src/LibHac/IO/NullFile.cs index f3a7946f..c2f3337e 100644 --- a/src/LibHac/IO/NullFile.cs +++ b/src/LibHac/IO/NullFile.cs @@ -4,8 +4,12 @@ namespace LibHac.IO { public class NullFile : FileBase { - public NullFile() { } - public NullFile(long length) => Length = length; + public NullFile() + { + Mode = OpenMode.ReadWrite; + } + + public NullFile(long length) : this() => Length = length; private long Length { get; }