mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-06 09:07:59 +02:00
* corrected test for empty filename in FileRec
git-svn-id: trunk@29538 -
This commit is contained in:
parent
943a094683
commit
7292e64e04
@ -729,7 +729,7 @@ begin
|
||||
else
|
||||
begin
|
||||
OSErrorWatch (RC);
|
||||
if FileRec (F).Name = '' then
|
||||
if FileRec (F).Name [0] = #0 then
|
||||
DosError := 3; (* Align the returned error value to TP/BP *)
|
||||
end;
|
||||
end;
|
||||
@ -762,7 +762,7 @@ begin
|
||||
else
|
||||
begin
|
||||
OSErrorWatch (RC);
|
||||
if FileRec (F).Name = '' then
|
||||
if FileRec (F).Name [0] = #0 then
|
||||
DosError := 3; (* Align the returned error value to TP/BP *)
|
||||
end;
|
||||
DosError := integer (RC);
|
||||
|
Loading…
Reference in New Issue
Block a user