summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2016-07-25 07:25:22 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2016-07-25 07:25:22 +0200
commit9e2e4af2dcdcfc3593c28846e4cd945d7c96008f (patch)
treed0d3408ba971322c755340b3be0b3d5c16bbf354
parentd143a610c6c7cff4f694bb21075423a5914726be (diff)
PhotoRec: recover Lotus Approch .apr files
-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 7bb21e4..758d514 100644
--- a/src/file_doc.c
+++ b/src/file_doc.c
@@ -292,6 +292,9 @@ static const char *ole_get_file_extension(const unsigned char *buffer, const uns
/* HP Photosmart Photo Printing Album */
if(memcmp(dir_entry->name,"I\0m\0a\0g\0e\0s\0S\0t\0o\0r\0e\0\0\0",24)==0)
return "albm";
+ /* Lotus Approch */
+ if(memcmp(dir_entry->name,"A\0p\0p\0r\0o\0a\0c\0h\0D\0o\0c\0\0\0",24)==0)
+ return "apr";
break;
case 28:
/* Microsoft Works Spreadsheet or Chart */
@@ -976,6 +979,9 @@ static void file_rename_doc(file_recovery_t *file_recovery)
/* HP Photosmart Photo Printing Album */
if(memcmp(dir_entry->name,"I\0m\0a\0g\0e\0s\0S\0t\0o\0r\0e\0\0\0",24)==0)
ext="albm";
+ /* Lotus Approch */
+ else if(memcmp(dir_entry->name,"A\0p\0p\0r\0o\0a\0c\0h\0D\0o\0c\0\0\0",24)==0)
+ ext="apr";
break;
case 28:
/* Microsoft Works Spreadsheet or Chart */