PhotoRec: get .arj date from file header
This commit is contained in:
parent
1596047827
commit
50390d8786
1 changed files with 3 additions and 0 deletions
|
@ -138,6 +138,9 @@ static int header_check_arj(const unsigned char *buffer, const unsigned int buff
|
|||
{
|
||||
reset_file_recovery(file_recovery_new);
|
||||
file_recovery_new->extension=file_hint_arj.extension;
|
||||
file_recovery_new->time=le32(arj->ctime);
|
||||
if(file_recovery_new->time < le32(arj->mtime))
|
||||
file_recovery_new->time=le32(arj->mtime);
|
||||
if((arj->flags&0x040)!=0)
|
||||
{
|
||||
file_recovery_new->calculated_file_size=le32(arj->size);
|
||||
|
|
Loading…
Reference in a new issue