From 1c17a668d85ebe2ce03fa9b624fc3e1162b21072 Mon Sep 17 00:00:00 2001 From: Maschell Date: Tue, 25 Jun 2019 16:01:16 +0200 Subject: [PATCH] Fix size parametet for the readContentAsStream function --- src/de/mas/wiiu/jnus/interfaces/NUSDataProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/mas/wiiu/jnus/interfaces/NUSDataProvider.java b/src/de/mas/wiiu/jnus/interfaces/NUSDataProvider.java index edc10fd..866a556 100644 --- a/src/de/mas/wiiu/jnus/interfaces/NUSDataProvider.java +++ b/src/de/mas/wiiu/jnus/interfaces/NUSDataProvider.java @@ -35,7 +35,7 @@ public interface NUSDataProvider { } default public InputStream readContentAsStream(Content content, long offset) throws IOException { - return readContentAsStream(content, offset, content.getEncryptedFileSize() - offset); + return readContentAsStream(content, offset, content.getEncryptedFileSizeAligned() - offset); } public InputStream readContentAsStream(Content content, long offset, long size) throws IOException;