https://git.reactos.org/?p=reactos.git;a=commitdiff;h=190c1b86ec3374fd83e0f…
commit 190c1b86ec3374fd83e0f6cc397f8f9aedcb0505
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Sun Jan 5 02:25:05 2020 +0100
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Thu Apr 30 20:38:43 2020 +0200
[ZIPFLDR] Set correct access time on file extraction
---
dll/shellext/zipfldr/CZipExtract.cpp | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/dll/shellext/zipfldr/CZipExtract.cpp b/dll/shellext/zipfldr/CZipExtract.cpp
index f4d76898d76..883bce731aa 100644
--- a/dll/shellext/zipfldr/CZipExtract.cpp
+++ b/dll/shellext/zipfldr/CZipExtract.cpp
@@ -533,13 +533,11 @@ public:
} while (err > 0);
/* Update Filetime */
- FILETIME LastAccessTime;
- GetFileTime(hFile, NULL, &LastAccessTime, NULL);
FILETIME LocalFileTime;
DosDateTimeToFileTime((WORD)(Info.dosDate >> 16), (WORD)Info.dosDate,
&LocalFileTime);
FILETIME FileTime;
LocalFileTimeToFileTime(&LocalFileTime, &FileTime);
- SetFileTime(hFile, &FileTime, &LastAccessTime, &FileTime);
+ SetFileTime(hFile, &FileTime, &FileTime, &FileTime);
/* Done */
CloseHandle(hFile);