From 673df4196dc58ee299ff5681e7781a725d2d8cf6 Mon Sep 17 00:00:00 2001 From: Barret Rennie Date: Sun, 20 Nov 2022 22:37:17 +0000 Subject: [PATCH] Bug 1786608 - Do not set atime on Windows in nsLocalFile::SetModifiedTime r=xpcom-reviewers,kmag Differential Revision: https://phabricator.services.mozilla.com/D155925 --- xpcom/io/nsLocalFileWin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpcom/io/nsLocalFileWin.cpp b/xpcom/io/nsLocalFileWin.cpp index 37278f264d6f..ab9b56b95882 100644 --- a/xpcom/io/nsLocalFileWin.cpp +++ b/xpcom/io/nsLocalFileWin.cpp @@ -2489,7 +2489,7 @@ nsresult nsLocalFile::SetModDate(PRTime aLastModifiedTime, nsresult rv = NS_OK; // if at least one of these fails... if (!(SystemTimeToFileTime(&st, &ft) != 0 && - SetFileTime(file, nullptr, &ft, &ft) != 0)) { + SetFileTime(file, nullptr, nullptr, &ft) != 0)) { rv = ConvertWinError(GetLastError()); }