Bug 1786608 - Do not set atime on Windows in nsLocalFile::SetModifiedTime r=xpcom-reviewers,kmag

Differential Revision: https://phabricator.services.mozilla.com/D155925
This commit is contained in:
Barret Rennie 2022-11-20 22:37:17 +00:00
Родитель 52f00192d7
Коммит 673df4196d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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());
}