mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-11-22 07:59:19 +01: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 {
|
||||
WUDDiscReader discReader = getDiscReader();
|
||||
long offset = getOffsetInWUD(content) + fileOffsetBlock;
|
||||
return discReader.readEncryptedToInputStream(offset, content.getEncryptedFileSize());
|
||||
return discReader.readEncryptedToInputStream(offset, content.getEncryptedFileSize() - fileOffsetBlock);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user