mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: SetFileTime parameters (fixes #2697)
(cherry picked from commit 9c80e25bb4)
This commit is contained in:
parent
c7aca4280c
commit
1eac2e755a
1 changed files with 1 additions and 1 deletions
|
|
@ -887,7 +887,7 @@ begin
|
|||
if (Mode and fmOpenNoATime <> 0) then
|
||||
begin
|
||||
if (Result <> feInvalidHandle) then
|
||||
SetFileTime(Result, nil, @ft, @ft)
|
||||
SetFileTime(Result, nil, @ft, nil)
|
||||
else if GetLastError = ERROR_ACCESS_DENIED then
|
||||
Result := mbFileOpen(FileName, Mode and not fmOpenNoATime);
|
||||
end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue