WMFImageReaderSpi issue

This commit is contained in:
Harald Kuhr 2014-02-12 20:32:28 +01:00
parent a26f8e5851
commit ff786c2315

View File

@ -54,7 +54,7 @@ public class WMFImageReaderSpi extends JMagickImageReaderSpiSupport {
// (byte) 0x9a, (byte) 0x00, (byte) 0x00,}},
byte[] magic = new byte[6];
pSource.readFully(magic);
return magic[0] == (byte) 0xD7 && magic[2] == (byte) 0xCD &&
return magic[0] == (byte) 0xD7 && magic[1] == (byte) 0xCD &&
magic[2] == (byte) 0xC6 && magic[3] == (byte) 0x9A &&
magic[4] == (byte) 0x00 && magic[5] == (byte) 0x00;
}