Browse Source

* ensure result is set

florian 6 tháng trước cách đây
mục cha
commit
b4b4896f7f
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      compiler/systems/t_msdos.pas

+ 1 - 2
compiler/systems/t_msdos.pas

@@ -449,8 +449,7 @@ begin
   BlockWrite(f,maxalloc,2);
   close(f);
   {$pop}
-  if ioresult<>0 then
-    Result:=true;
+  Result:=ioresult=0;
 end;
 
 {****************************************************************************