Fixed the missing offset in reading WUD files

This commit is contained in:
Maschell 2018-12-06 15:35:45 +01:00
parent 9d255e0291
commit 2479572917

View File

@ -56,7 +56,7 @@ public abstract class WUDDiscReader {
public byte[] readEncryptedToByteArray(long offset, long fileoffset, long size) throws IOException {
ByteArrayOutputStream out = new ByteArrayOutputStream();
readEncryptedToOutputStream(out, offset, size);
readEncryptedToOutputStream(out, offset + fileoffset, size);
return out.toByteArray();
}