Fixed #1963 Reading CLIPEVENTFLAGS ClipActionEndFlag on SWF versions >= 6

This commit is contained in:
Jindra Petřík
2023-02-04 22:17:47 +01:00
parent b43f99efe6
commit 876ef22645
2 changed files with 3 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file.
- [#1960] Hide tag tree root handles as it was in previous versions
- [#1964] Freezing on releasing mouse while shape transforming (deadlock)
- [#1961] Characters can use characterId 0, PlaceObject can use depth 0
- [#1963] Reading CLIPEVENTFLAGS ClipActionEndFlag on SWF versions >= 6
### Changed
- [#1960] Quick search does not search in SWF name or folder names
@@ -2946,6 +2947,7 @@ All notable changes to this project will be documented in this file.
[#1960]: https://www.free-decompiler.com/flash/issues/1960
[#1964]: https://www.free-decompiler.com/flash/issues/1964
[#1961]: https://www.free-decompiler.com/flash/issues/1961
[#1963]: https://www.free-decompiler.com/flash/issues/1963
[#1029]: https://www.free-decompiler.com/flash/issues/1029
[#1948]: https://www.free-decompiler.com/flash/issues/1948
[#1941]: https://www.free-decompiler.com/flash/issues/1941

View File

@@ -2026,7 +2026,7 @@ public class SWFInputStream implements AutoCloseable {
ret.clipEventPress = readUB(1, "clipEventPress") == 1;
ret.clipEventInitialize = readUB(1, "clipEventInitialize") == 1;
ret.clipEventData = readUB(1, "clipEventData") == 1;
if (swf.version >= 6) {
if (swf.version >= 6 && available() > 0) {
ret.reserved = (int) readUB(5, "reserved");
ret.clipEventConstruct = readUB(1, "clipEventConstruct") == 1;
ret.clipEventKeyPress = readUB(1, "clipEventKeyPress") == 1;