Mercurial > hg > dmlib
diff tools/lib64fmts.c @ 1789:9f5c5ab0e85e
Adjust True Paint probing to be slightly more forgiving vs. file size.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 13 Jun 2018 01:58:03 +0300 |
parents | 04e13949b314 |
children | ae53df2156ed |
line wrap: on
line diff
--- a/tools/lib64fmts.c Wed Jun 13 01:57:07 2018 +0300 +++ b/tools/lib64fmts.c Wed Jun 13 01:58:03 2018 +0300 @@ -468,7 +468,8 @@ 0xff, 0xc6, 0xfe }; - if (buf->len >= 512 && dmCompareAddr16(buf, 0, fmt->addr) && + if (buf->len >= 320 && + dmCompareAddr16(buf, 0, fmt->addr) && memcmp(buf->data + 2, magicID, sizeof(magicID)) == 0) return DM_PROBE_SCORE_MAX;