summaryrefslogtreecommitdiffstats
path: root/src/file_res.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-05-21 09:08:10 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2010-05-21 09:08:10 +0200
commit8a541396e3f718adba4a8f8ccfbfa2778458211f (patch)
tree978f50c66f2a6b76beb2eb0e84219026d71c9a97 /src/file_res.c
parent3d9a968bdd867236e6e7a2df6384678b97b85a37 (diff)
PhotoRec: stricter check for .res
Diffstat (limited to 'src/file_res.c')
-rw-r--r--src/file_res.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/file_res.c b/src/file_res.c
index a1456ef..5efb1ec 100644
--- a/src/file_res.c
+++ b/src/file_res.c
@@ -43,7 +43,8 @@ const file_hint_t file_hint_res= {
.register_header_check=&register_header_check_res
};
-static const unsigned char MS_res_header[9]= {0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0xFF};
+static const unsigned char MS_res_header[14]= {0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00,
+ 0xFF, 0xFF, 0, 0, 0xFF, 0xFF};
static void register_header_check_res(file_stat_t *file_stat)
{