summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-06-21 19:41:40 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2009-06-21 19:41:40 +0200
commit05063cc236bf7e8b83f3ce9de5dfc2cc447e805a (patch)
tree2c094d054dd8c133e11deddbfc2ec443d9aeb0a3
parent40a16fd80e5a3abc90f9d8928750312602cc22cc (diff)
PhotoRec: recover Quattro Pro spreadsheet qpw
-rw-r--r--src/file_doc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/file_doc.c b/src/file_doc.c
index 90de46f..9eb6f3c 100644
--- a/src/file_doc.c
+++ b/src/file_doc.c
@@ -121,7 +121,9 @@ static const char *ole_get_file_extension(const unsigned char *buffer, const uns
log_info("%c",dir_entry->name[j]);
}
log_info(" type %u",dir_entry->type);
- log_info(" sector %llu\n",(long long unsigned)le32(dir_entry->start_block));
+ log_info(" sector %u (%u bytes)\n",
+ (unsigned int)le32(dir_entry->start_block),
+ (unsigned int)le32(dir_entry->size));
#endif
if(sid==1 && memcmp(&dir_entry->name, "1\0\0\0", 4)==0)
is_db++;
@@ -170,6 +172,9 @@ static const char *ole_get_file_extension(const unsigned char *buffer, const uns
return "sldprt";
#endif
}
+ /* Quattro Pro spreadsheet */
+ if(memcmp(&dir_entry->name, "N\0a\0t\0i\0v\0e\0C\0o\0n\0t\0e\0n\0t\0_\0M\0A\0I\0N\0", 36)==0)
+ return "qpw";
}
if(ext!=NULL)
return ext;