Add required FPC_DOTTEDUNITS changes

This commit is contained in:
Pierre Muller 2023-08-04 14:07:39 +02:00
parent 84c8a68492
commit ed734996fc

View File

@ -751,11 +751,11 @@ begin
end
else
begin
Err := DOS.DosError;
Err := {$IFDEF FPC_DOTTEDUNITS}TP.{$endif}DOS.DosError;
GetMem (SR, SizeOf (SearchRec));
Rslt.FindHandle := longint(SR);
DOS.FindFirst (Path, Attr, SR^);
InternalFindFirst := -DOS.DosError;
{$IFDEF FPC_DOTTEDUNITS}TP.{$endif}DOS.FindFirst (Path, Attr, SR^);
InternalFindFirst := -{$IFDEF FPC_DOTTEDUNITS}TP.{$endif}DOS.DosError;
if DosError = 0 then
begin
Rslt.Time := SR^.Time;
@ -766,7 +766,7 @@ begin
Name := SR^.Name;
SetCodePage(Name, DefaultFileSystemCodePage, false);
end;
DOS.DosError := Err;
{$IFDEF FPC_DOTTEDUNITS}TP.{$endif}DOS.DosError := Err;
end;
end;
@ -814,7 +814,7 @@ begin
SR := PSearchRec (Rslt.FindHandle);
if SR <> nil then
begin
DOS.FindNext (SR^);
{$IFDEF FPC_DOTTEDUNITS}TP.{$endif}DOS.FindNext (SR^);
InternalFindNext := -DosError;
if DosError = 0 then
begin
@ -843,7 +843,7 @@ begin
else
begin
SR := PSearchRec (Handle);
DOS.FindClose (SR^);
{$IFDEF FPC_DOTTEDUNITS}TP.{$endif}DOS.FindClose (SR^);
FreeMem (SR, SizeOf (SearchRec));
end;
Handle := 0;
@ -1313,7 +1313,7 @@ begin
raise E;
end else
begin
Dos.Exec (Path, ComLine);
{$IFDEF FPC_DOTTEDUNITS}TP.{$endif}Dos.Exec (Path, ComLine);
if DosError <> 0 then
begin
if ComLine = '' then