]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
FAT last modified date fix.
authorToni Wilen <twilen@winuae.net>
Wed, 21 Oct 2015 17:24:26 +0000 (20:24 +0300)
committerToni Wilen <twilen@winuae.net>
Wed, 21 Oct 2015 17:24:26 +0000 (20:24 +0300)
od-win32/fsdb_mywin32.cpp

index d36f2fe7e42bc82dac72ad658e7c47fb1489c6ad..8fa8104dd5ca1fe75cdf7c2a182408abb2914cf5 100644 (file)
@@ -632,7 +632,7 @@ bool my_stat (const TCHAR *name, struct mystat *statbuf)
                        if (wtsec == ctsec || wtsec + 1 == ctsec) {
                                ft = fi.ftCreationTime;
                        } else {
-                               ft = fi.ftLastAccessTime;
+                               ft = fi.ftLastWriteTime;
                        }
                } else {
                        ft = fi.ftLastWriteTime;
@@ -1032,4 +1032,4 @@ const TCHAR *my_getfilepart(const TCHAR *filename)
        if (p)
                return p + 1;
        return filename;
-}
\ No newline at end of file
+}