comparison tools/lib64fmts.c @ 1636:710961d02b8a

Fix packed Koala Painter probing.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 25 May 2018 02:23:23 +0300
parents 9ba9d049e6e9
children 415c732dc14c
comparison
equal deleted inserted replaced
1635:9ba9d049e6e9 1636:710961d02b8a
35 static int fmtProbeKoalaPaintPacked(const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt) 35 static int fmtProbeKoalaPaintPacked(const Uint8 *buf, const size_t len, const DMC64ImageFormat *fmt)
36 { 36 {
37 // Attempt to prevent misprobes of unpacked Koala and Run Paint 37 // Attempt to prevent misprobes of unpacked Koala and Run Paint
38 if (len > 30 && 38 if (len > 30 &&
39 len != 10006 && 39 len != 10006 &&
40 len != fmt->size && 40 len != 10003 &&
41 dmCompareAddr16(buf, 0, fmt->addr)) 41 dmCompareAddr16(buf, 0, fmt->addr))
42 return DM_PROBE_SCORE_MAX; 42 return DM_PROBE_SCORE_MAX;
43 43
44 return DM_PROBE_SCORE_FALSE; 44 return DM_PROBE_SCORE_FALSE;
45 } 45 }