summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-04-19 07:58:59 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-04-19 07:58:59 +0200
commiteef1b4b104bccedaa7cf2694c54f20d3539f8f4e (patch)
treea35e9072d4504e2bc1d247dd6e5b65112cfc91bb
parente6f2c37ad0bab53a7603f7925cf482881b7df9d9 (diff)
PhotoRec: get .reg file date from header
-rw-r--r--src/file_reg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/file_reg.c b/src/file_reg.c
index 389dfd3..45f9728 100644
--- a/src/file_reg.c
+++ b/src/file_reg.c
@@ -110,6 +110,7 @@ static int header_check_reg_nt(const unsigned char *buffer, const unsigned int b
reset_file_recovery(file_recovery_new);
file_recovery_new->min_filesize=0x1000;
file_recovery_new->extension=file_hint_reg.extension;
+ file_recovery_new->time=td_ntfs2utc(le64(header->modification_time));
return 1;
}