summaryrefslogtreecommitdiffstats
path: root/src/file_wtv.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2016-09-30 16:31:09 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2016-09-30 16:31:09 +0200
commit20b02dd16415e21e57c7a36f5e12d631501d8c75 (patch)
tree1817c862eec9e1555f8bd5e4974c08a2c8eb37fe /src/file_wtv.c
parent8a5bc214d7b52627aad61a243140e6a7f0987ace (diff)
PhotoRec: for some file formats, check if file is complete when a new file is found
Diffstat (limited to 'src/file_wtv.c')
-rw-r--r--src/file_wtv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file_wtv.c b/src/file_wtv.c
index 711570e..5b8e9bb 100644
--- a/src/file_wtv.c
+++ b/src/file_wtv.c
@@ -53,8 +53,8 @@ static int header_check_wtv(const unsigned char *buffer, const unsigned int buff
file_recovery->file_stat->file_hint==&file_hint_wtv &&
file_recovery->file_size<=0x3000)
{
- header_ignored(file_recovery_new);
- return 0;
+ if(header_ignored_adv(file_recovery, file_recovery_new)==0)
+ return 0;
}
reset_file_recovery(file_recovery_new);
file_recovery_new->extension=file_hint_wtv.extension;