Fix potential bug

This commit is contained in:
Maschell 2019-04-07 00:11:13 +02:00
parent 48f8629744
commit 0261e33b80

View File

@ -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