* align DosError returned for empty filename in GetFAttr and SetFAttr to TP/BP

git-svn-id: trunk@29530 -
This commit is contained in:
Tomas Hajny 2015-01-23 00:48:16 +00:00
parent 37acf48426
commit 5176a069cf

View File

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