summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-12-23 22:14:04 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2010-12-23 22:14:04 +0100
commita726786cc76bd89237756fc2d7cc6e6099c6e517 (patch)
treeedccab8d91011c8f193df381ad7b17c92a0b7760 /src
parent30d8427d31f2bbbdc22fd62cc5da287e728e3819 (diff)
PhotoRec: detect Page Maker .p65 files
Diffstat (limited to 'src')
-rw-r--r--src/file_doc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/file_doc.c b/src/file_doc.c
index 759a6f6..c7b3f0e 100644
--- a/src/file_doc.c
+++ b/src/file_doc.c
@@ -286,6 +286,9 @@ static const char *ole_get_file_extension(const unsigned char *buffer, const uns
/* 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";
+ /* Page Maker */
+ if(memcmp(&dir_entry->name, "P\0a\0g\0e\0M\0a\0k\0e\0r\0", 18)==0)
+ return "p65";
if(sid==1 && memcmp(&dir_entry->name, "D\0g\0n", 6)==0)
return "dgn";
}
@@ -877,6 +880,9 @@ static void file_rename_doc(const char *old_filename)
/* Quattro Pro spreadsheet */
else 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)
ext="qpw";
+ /* Page Maker */
+ else if(memcmp(&dir_entry->name, "P\0a\0g\0e\0M\0a\0k\0e\0r\0", 18)==0)
+ ext="p65";
if(sid==1 && memcmp(dir_entry->name, "D\0g\0n", 6)==0)
ext="dgn";
}