From 613c8fb9d42efe9360c12e92e47fe9ea7bfa9d1b Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Tue, 1 Jan 2013 12:53:00 +0000 Subject: [PATCH] Use modification instead of creation date.(rcblanke) Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3809 --- src/dos/drive_fat.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dos/drive_fat.cpp b/src/dos/drive_fat.cpp index 59caf294..d5be63f7 100644 --- a/src/dos/drive_fat.cpp +++ b/src/dos/drive_fat.cpp @@ -968,7 +968,10 @@ nextfile: /* Compare name to search pattern */ if(!WildFileCmp(find_name,srch_pattern)) goto nextfile; - dta.SetResult(find_name, sectbuf[entryoffset].entrysize, sectbuf[entryoffset].crtDate, sectbuf[entryoffset].crtTime, sectbuf[entryoffset].attrib); + //dta.SetResult(find_name, sectbuf[entryoffset].entrysize, sectbuf[entryoffset].crtDate, sectbuf[entryoffset].crtTime, sectbuf[entryoffset].attrib); + + dta.SetResult(find_name, sectbuf[entryoffset].entrysize, sectbuf[entryoffset].modDate, sectbuf[entryoffset].modTime, sectbuf[entryoffset].attrib); + memcpy(foundEntry, §buf[entryoffset], sizeof(direntry)); return true;