diff options
author | Christophe Grenier <[email protected]> | 2009-04-12 18:48:04 +0200 |
---|---|---|
committer | Christophe Grenier <[email protected]> | 2009-04-12 18:48:04 +0200 |
commit | b40cb297b2df674137a0b239cc877d4e37d6dc0e (patch) | |
tree | bde8febabd7c53ee68ae5e51fad889b73d8e9043 | |
parent | 480320fe82922296d6c181ddcc95fbf5cf566330 (diff) |
PhotoRec: fix Macintosh Picture .pct size detection
-rw-r--r-- | src/file_pct.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/file_pct.c b/src/file_pct.c index c414ec84..48d7b7ee 100644 --- a/src/file_pct.c +++ b/src/file_pct.c @@ -102,14 +102,16 @@ static int header_check_pct(const unsigned char *buffer, const unsigned int buff reset_file_recovery(file_recovery_new); file_recovery_new->extension=file_hint_pct.extension; /* We only have the low 16bits of the filesystem */ - file_recovery_new->min_filesize=0x200+(buffer[0x200]<<8)+buffer[0x201]; + file_recovery_new->min_filesize=(buffer[0x200]<<8)+buffer[0x201]; file_recovery_new->file_check=&file_check_pct; +#ifdef DEBUG_PCT log_info("X %u-%u, Y %u-%u\n", be16(pct->XMin), be16(pct->XMax), be16(pct->YMin), be16(pct->YMax)); log_info("X %u-%u, Y %u-%u\n", be16(pct->OXMin), be16(pct->OXMax), be16(pct->OYMin), be16(pct->OYMax)); +#endif return 1; } return 0; |