소스 검색

ADD: Flush doublecmd.xml to the disk

Alexander Koblov 1 개월 전
부모
커밋
44b35f2e19
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      components/doublecmd/dcxmlconfig.pas

+ 2 - 1
components/doublecmd/dcxmlconfig.pas

@@ -553,11 +553,12 @@ end;
 
 procedure TXmlConfig.WriteToFile(const AFilename: String);
 var
-  FileStream: TStream;
+  FileStream: TFileStreamEx;
 begin
   FileStream := TFileStreamEx.Create(AFilename, fmCreate or fmShareDenyWrite);
   try
     WriteToStream(FileStream);
+    FileStream.Flush;
   finally
     FileStream.Free;
   end;