mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-12 21:12:01 +00:00
SWFs in zip based bundles saving fixed
This commit is contained in:
@@ -160,8 +160,7 @@ public class ZippedSWFBundle implements SWFBundle {
|
||||
while ((entryIn = zis.getNextEntry()) != null) {
|
||||
InputStream src;
|
||||
if (entryIn.getName().equals(key)) {
|
||||
entryOut = new ZipEntry(entryIn);
|
||||
entryOut.setSize(swfData.length);
|
||||
entryOut = new ZipEntry(key);
|
||||
src = new ByteArrayInputStream(swfData);
|
||||
} else {
|
||||
src = zis;
|
||||
@@ -169,11 +168,11 @@ public class ZippedSWFBundle implements SWFBundle {
|
||||
}
|
||||
zos.putNextEntry(entryOut);
|
||||
Helper.copyStream(src, zos, entryOut.getSize() == -1 ? Long.MAX_VALUE : entryOut.getSize());
|
||||
zos.closeEntry();
|
||||
zis.closeEntry();
|
||||
}
|
||||
} finally {
|
||||
zis.closeEntry();
|
||||
zis.close();
|
||||
zos.closeEntry();
|
||||
zos.close();
|
||||
}
|
||||
this.is.close();
|
||||
|
||||
Reference in New Issue
Block a user