From f41e139c1d97bf6e339b59f358e7e67d9522afb8 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Sun, 22 Apr 2012 15:15:17 +0200 Subject: [PATCH] Fix fr310xt case which has a working clock --- fr60.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fr60.c b/fr60.c index 8a18c4c..00ff9aa 100644 --- a/fr60.c +++ b/fr60.c @@ -319,7 +319,8 @@ decode_antfs_dir(const uchar* blast, uint blsize) assert(sizeof(struct antfs_dir_header) == ANTFSHEADERSIZE); memcpy(&hdr, blast + 24, ANTFSHEADERSIZE); - if (hdr.modified_time < 0x0FFFFFFF) + printf("time format: %d\n", hdr.time_format); + if (hdr.modified_time < 0x0FFFFFFF && hdr.modified_time > 0) clock_offset = time(NULL) - EPOCH_OFFSET - hdr.system_time; printf("system time: %d (offset: %d)\n", hdr.system_time, clock_offset); format_time(textual_time, "%c", 256, hdr.modified_time); -- 2.39.5