mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 13:29:14 +02:00
* fix of FileSetDate after int64 changes (r44010 and r44013)
git-svn-id: trunk@44018 -
This commit is contained in:
parent
a16f332fbb
commit
e790cb067d
@ -871,10 +871,10 @@ begin
|
|||||||
FileSetDate := -1
|
FileSetDate := -1
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
FStat^.DateLastAccess := Hi (Age);
|
FStat^.DateLastAccess := Hi (dword (Age));
|
||||||
FStat^.DateLastWrite := Hi (Age);
|
FStat^.DateLastWrite := Hi (dword (Age));
|
||||||
FStat^.TimeLastAccess := Lo (Age);
|
FStat^.TimeLastAccess := Lo (dword (Age));
|
||||||
FStat^.TimeLastWrite := Lo (Age);
|
FStat^.TimeLastWrite := Lo (dword (Age));
|
||||||
RC := DosSetFileInfo (Handle, ilStandard, FStat,
|
RC := DosSetFileInfo (Handle, ilStandard, FStat,
|
||||||
SizeOf (FStat^));
|
SizeOf (FStat^));
|
||||||
if RC <> 0 then
|
if RC <> 0 then
|
||||||
|
@ -445,8 +445,8 @@ var
|
|||||||
begin
|
begin
|
||||||
Regs.Ebx := Handle;
|
Regs.Ebx := Handle;
|
||||||
Regs.Eax := $5701;
|
Regs.Eax := $5701;
|
||||||
Regs.Ecx := Lo(Age);
|
Regs.Ecx := Lo(dword(Age));
|
||||||
Regs.Edx := Hi(Age);
|
Regs.Edx := Hi(dword(Age));
|
||||||
RealIntr($21, Regs);
|
RealIntr($21, Regs);
|
||||||
if Regs.Flags and CarryFlag <> 0 then
|
if Regs.Flags and CarryFlag <> 0 then
|
||||||
result := -Regs.Ax
|
result := -Regs.Ax
|
||||||
|
@ -444,8 +444,8 @@ var
|
|||||||
begin
|
begin
|
||||||
Regs.bx := Handle;
|
Regs.bx := Handle;
|
||||||
Regs.ax := $5701;
|
Regs.ax := $5701;
|
||||||
Regs.cx := Lo(Age);
|
Regs.cx := Lo(dword(Age));
|
||||||
Regs.dx := Hi(Age);
|
Regs.dx := Hi(dword(Age));
|
||||||
MsDos(Regs);
|
MsDos(Regs);
|
||||||
if Regs.Flags and fCarry <> 0 then
|
if Regs.Flags and fCarry <> 0 then
|
||||||
result := -Regs.Ax
|
result := -Regs.Ax
|
||||||
|
@ -365,9 +365,9 @@ begin
|
|||||||
RC := DosQueryFileInfo(Handle, ilStandard, @FStat, SizeOf(FStat));
|
RC := DosQueryFileInfo(Handle, ilStandard, @FStat, SizeOf(FStat));
|
||||||
if RC = 0 then
|
if RC = 0 then
|
||||||
begin
|
begin
|
||||||
Time := FStat.TimeLastWrite + longint (FStat.DateLastWrite) shl 16;
|
Time := FStat.TimeLastWrite + dword (FStat.DateLastWrite) shl 16;
|
||||||
if Time = 0 then
|
if Time = 0 then
|
||||||
Time := FStat.TimeCreation + longint (FStat.DateCreation) shl 16;
|
Time := FStat.TimeCreation + dword (FStat.DateCreation) shl 16;
|
||||||
end else
|
end else
|
||||||
begin
|
begin
|
||||||
Time:=0;
|
Time:=0;
|
||||||
@ -390,10 +390,10 @@ begin
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
FStat^.DateLastAccess := Hi (Age);
|
FStat^.DateLastAccess := Hi (dword (Age));
|
||||||
FStat^.DateLastWrite := Hi (Age);
|
FStat^.DateLastWrite := Hi (dword (Age));
|
||||||
FStat^.TimeLastAccess := Lo (Age);
|
FStat^.TimeLastAccess := Lo (dword (Age));
|
||||||
FStat^.TimeLastWrite := Lo (Age);
|
FStat^.TimeLastWrite := Lo (dword (Age));
|
||||||
RC := DosSetFileInfo (Handle, ilStandard, FStat, SizeOf (FStat^));
|
RC := DosSetFileInfo (Handle, ilStandard, FStat, SizeOf (FStat^));
|
||||||
if RC <> 0 then
|
if RC <> 0 then
|
||||||
begin
|
begin
|
||||||
|
@ -430,8 +430,8 @@ var
|
|||||||
begin
|
begin
|
||||||
Regs.Ebx := Handle;
|
Regs.Ebx := Handle;
|
||||||
Regs.Eax := $5701;
|
Regs.Eax := $5701;
|
||||||
Regs.Ecx := Lo(Age);
|
Regs.Ecx := Lo(dword(Age));
|
||||||
Regs.Edx := Hi(Age);
|
Regs.Edx := Hi(dword(Age));
|
||||||
RealIntr($21, Regs);
|
RealIntr($21, Regs);
|
||||||
if Regs.Flags and CarryFlag <> 0 then
|
if Regs.Flags and CarryFlag <> 0 then
|
||||||
result := -Regs.Ax
|
result := -Regs.Ax
|
||||||
|
@ -471,8 +471,8 @@ var
|
|||||||
begin
|
begin
|
||||||
Regs.bx := Handle;
|
Regs.bx := Handle;
|
||||||
Regs.ax := $5701;
|
Regs.ax := $5701;
|
||||||
Regs.cx := Lo(Age);
|
Regs.cx := Lo(dword(Age));
|
||||||
Regs.dx := Hi(Age);
|
Regs.dx := Hi(dword(Age));
|
||||||
ZeroSegRegs(Regs);
|
ZeroSegRegs(Regs);
|
||||||
MsDos(Regs);
|
MsDos(Regs);
|
||||||
if Regs.Flags and fCarry <> 0 then
|
if Regs.Flags and fCarry <> 0 then
|
||||||
|
Loading…
Reference in New Issue
Block a user