Fixed #1757 Binary search - SWF files need to be sorted by file position

This commit is contained in:
Jindra Petřík
2022-11-17 20:23:37 +01:00
parent a41e3d13fa
commit 1e535a4472
5 changed files with 13 additions and 6 deletions

View File

@@ -25,6 +25,7 @@ import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
@@ -44,7 +45,7 @@ public class SWFSearch {
private final Set<ProgressListener> listeners = new HashSet<>();
private final Map<Long, MemoryInputStream> swfStreams = new HashMap<>();
private final Map<Long, MemoryInputStream> swfStreams = new LinkedHashMap<>();
public SWFSearch(Searchable s, boolean noCheck, SearchMode searchMode) {
this.s = s;