From 0261e33b80c11574e0d6ee4a69d56344b5a8373e Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 7 Apr 2019 00:11:13 +0200 Subject: [PATCH] Fix potential bug --- src/de/mas/wiiu/jnus/implementations/NUSDataProviderWUD.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/mas/wiiu/jnus/implementations/NUSDataProviderWUD.java b/src/de/mas/wiiu/jnus/implementations/NUSDataProviderWUD.java index 69f62ce..e1b444a 100644 --- a/src/de/mas/wiiu/jnus/implementations/NUSDataProviderWUD.java +++ b/src/de/mas/wiiu/jnus/implementations/NUSDataProviderWUD.java @@ -64,7 +64,7 @@ public class NUSDataProviderWUD extends NUSDataProvider { public InputStream getInputStreamFromContent(Content content, long fileOffsetBlock) throws IOException { WUDDiscReader discReader = getDiscReader(); long offset = getOffsetInWUD(content) + fileOffsetBlock; - return discReader.readEncryptedToInputStream(offset, content.getEncryptedFileSize()); + return discReader.readEncryptedToInputStream(offset, content.getEncryptedFileSize() - fileOffsetBlock); } @Override