Mercurial > hg > dmlib
comparison src/libgfx.c @ 1265:4e074b9b4789
Improve IFF FORM validity error message.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 25 May 2015 12:58:23 +0300 |
parents | aa6e8a24b94b |
children | 0d3f5f44c0c4 |
comparison
equal
deleted
inserted
replaced
1264:aa6e8a24b94b | 1265:4e074b9b4789 |
---|---|
1477 if (!dmReadIFFChunk(fp, &chunk) || | 1477 if (!dmReadIFFChunk(fp, &chunk) || |
1478 chunk.id != IFF_ID_FORM || | 1478 chunk.id != IFF_ID_FORM || |
1479 chunk.size < 32) | 1479 chunk.size < 32) |
1480 { | 1480 { |
1481 return dmError(DMERR_NOT_SUPPORTED, | 1481 return dmError(DMERR_NOT_SUPPORTED, |
1482 "ILBM: Not a IFF file.\n"); | 1482 "ILBM: Not a IFF file (%08X vs %08X / %d).\n", |
1483 chunk.id, IFF_ID_FORM, chunk.size); | |
1483 } | 1484 } |
1484 | 1485 |
1485 // Check IFF ILBM signature | 1486 // Check IFF ILBM signature |
1486 if (!dm_fread_be32(fp, &idILBM) || | 1487 if (!dm_fread_be32(fp, &idILBM) || |
1487 (idILBM != IFF_ID_ILBM && idILBM != IFF_ID_PBM)) | 1488 (idILBM != IFF_ID_ILBM && idILBM != IFF_ID_PBM)) |