mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-16 00:30:44 +01:00
* align DosError returned for empty filename in GetFAttr and SetFAttr to TP/BP
git-svn-id: trunk@29530 -
This commit is contained in:
parent
37acf48426
commit
5176a069cf
@ -694,7 +694,11 @@ begin
|
||||
if RC = 0 then
|
||||
Attr := PathInfo.AttrFile
|
||||
else
|
||||
OSErrorWatch (RC);
|
||||
begin
|
||||
OSErrorWatch (RC);
|
||||
if FileRec (F).Name = '' then
|
||||
DosError := 3; (* Align the returned error value to TP/BP *)
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
@ -723,7 +727,11 @@ begin
|
||||
OSErrorWatch (RC);
|
||||
end
|
||||
else
|
||||
OSErrorWatch (RC);
|
||||
begin
|
||||
OSErrorWatch (RC);
|
||||
if FileRec (F).Name = '' then
|
||||
DosError := 3; (* Align the returned error value to TP/BP *)
|
||||
end;
|
||||
DosError := integer (RC);
|
||||
end;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user