ソースを参照

* allow Append to work on character devices

git-svn-id: trunk@29669 -
Tomas Hajny 10 年 前
コミット
a4df1b644c
1 ファイル変更2 行追加1 行削除
  1. 2 1
      rtl/os2/sysfile.inc

+ 2 - 1
rtl/os2/sysfile.inc

@@ -322,7 +322,8 @@ begin
     // Move to end of file for Append command
     // Move to end of file for Append command
     if ((Flags and $100) <> 0) then
     if ((Flags and $100) <> 0) then
     begin
     begin
-      do_seekend(FileRec(F).Handle);
+      if not (Do_IsDevice (FileRec (F).Handle)) then
+       Do_SeekEnd (FileRec (F).Handle);
       FileRec(F).Mode := fmOutput;
       FileRec(F).Mode := fmOutput;
     end;
     end;