mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-10-02 00:35:08 +02:00
Fix potential bug
This commit is contained in:
parent
48f8629744
commit
0261e33b80
@ -64,7 +64,7 @@ public class NUSDataProviderWUD extends NUSDataProvider {
|
|||||||
public InputStream getInputStreamFromContent(Content content, long fileOffsetBlock) throws IOException {
|
public InputStream getInputStreamFromContent(Content content, long fileOffsetBlock) throws IOException {
|
||||||
WUDDiscReader discReader = getDiscReader();
|
WUDDiscReader discReader = getDiscReader();
|
||||||
long offset = getOffsetInWUD(content) + fileOffsetBlock;
|
long offset = getOffsetInWUD(content) + fileOffsetBlock;
|
||||||
return discReader.readEncryptedToInputStream(offset, content.getEncryptedFileSize());
|
return discReader.readEncryptedToInputStream(offset, content.getEncryptedFileSize() - fileOffsetBlock);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user