Ver Fonte

* corrected test for empty filename in FileRec

git-svn-id: trunk@29538 -
Tomas Hajny há 10 anos atrás
pai
commit
7292e64e04
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      rtl/os2/dos.pas

+ 2 - 2
rtl/os2/dos.pas

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