From ea623dfa960904511bce33bd065978662d1de625 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Thu, 9 Aug 2012 13:10:00 +0200 Subject: [PATCH] PhotoRec: less strict check for .pst files --- src/file_pst.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/file_pst.c b/src/file_pst.c index 5263e8da..bec6ed13 100644 --- a/src/file_pst.c +++ b/src/file_pst.c @@ -107,7 +107,8 @@ static int header_check_pst(const unsigned char *buffer, const unsigned int buff } if(memcmp(buffer,pst_header,sizeof(pst_header))==0) { - if(buffer[INDEX_TYPE_OFFSET]==0x0e) + if(buffer[INDEX_TYPE_OFFSET]==0x0e || + buffer[INDEX_TYPE_OFFSET]==0x0f) { /* Outlook 2000 and older versions */ reset_file_recovery(file_recovery_new); @@ -120,7 +121,8 @@ static int header_check_pst(const unsigned char *buffer, const unsigned int buff file_recovery_new->file_check=&file_check_size; return 1; } - else if(buffer[INDEX_TYPE_OFFSET]==0x17) + else +// if(buffer[INDEX_TYPE_OFFSET]==0x15 || buffer[INDEX_TYPE_OFFSET]==0x17) { /* Outlook 2003 */ reset_file_recovery(file_recovery_new); file_recovery_new->extension=file_hint_pst.extension;