* fix of FileSetDate after int64 changes (r44010 and r44013)

git-svn-id: trunk@44018 -
This commit is contained in:
Tomas Hajny 2020-01-22 12:14:47 +00:00
parent a16f332fbb
commit e790cb067d
6 changed files with 18 additions and 18 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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