code hint fixes

This commit is contained in:
honfika@gmail.com
2015-01-19 12:18:49 +01:00
parent e4e9676081
commit df518ff503
6 changed files with 51 additions and 40 deletions

View File

@@ -708,7 +708,10 @@ public class ProxyFrame extends AppFrame implements ActionListener, CatchedListe
if (!cont) {
try {
byte[] hdr = new byte[3];
data.read(hdr);
if (data.read(hdr) != 3) {
throw new IOException();
}
String shdr = new String(hdr);
if (swfOnly && ((!shdr.equals("FWS")) && (!shdr.equals("CWS")) && (!shdr.equals("ZWS")))) {
return null; //NOT SWF