Przeglądaj źródła

* corrected test for empty filename in FileRec

git-svn-id: trunk@29538 -
Tomas Hajny 10 lat temu
rodzic
commit
7292e64e04
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      rtl/os2/dos.pas

+ 2 - 2
rtl/os2/dos.pas

@@ -729,7 +729,7 @@ begin
   else
   else
    begin
    begin
     OSErrorWatch (RC);
     OSErrorWatch (RC);
-    if FileRec (F).Name = '' then
+    if FileRec (F).Name [0] = #0 then
      DosError := 3; (* Align the returned error value to TP/BP *)
      DosError := 3; (* Align the returned error value to TP/BP *)
    end;
    end;
 end;
 end;
@@ -762,7 +762,7 @@ begin
   else
   else
    begin
    begin
     OSErrorWatch (RC);
     OSErrorWatch (RC);
-    if FileRec (F).Name = '' then
+    if FileRec (F).Name [0] = #0 then
      DosError := 3; (* Align the returned error value to TP/BP *)
      DosError := 3; (* Align the returned error value to TP/BP *)
    end;
    end;
   DosError := integer (RC);
   DosError := integer (RC);