PhotoRec: define a minimal size for recovered .dat
This commit is contained in:
parent
32e432da48
commit
a84642bcde
1 changed files with 2 additions and 0 deletions
|
@ -46,6 +46,7 @@ static int header_check_dat(const unsigned char *buffer, const unsigned int buff
|
||||||
{
|
{
|
||||||
reset_file_recovery(file_recovery_new);
|
reset_file_recovery(file_recovery_new);
|
||||||
file_recovery_new->extension=file_hint_dat.extension;
|
file_recovery_new->extension=file_hint_dat.extension;
|
||||||
|
file_recovery_new->min_filesize=8;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,6 +68,7 @@ static int header_check_dat_history(const unsigned char *buffer, const unsigned
|
||||||
{
|
{
|
||||||
reset_file_recovery(file_recovery_new);
|
reset_file_recovery(file_recovery_new);
|
||||||
file_recovery_new->extension=file_hint_dat.extension;
|
file_recovery_new->extension=file_hint_dat.extension;
|
||||||
|
file_recovery_new->min_filesize=8;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue