소스 검색

* Fix from Kevin Jesshope to fix concurrent access in case of CGI

Michaël Van Canneyt 3 년 전
부모
커밋
f8bf34303c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/fcl-web/src/base/fpmimetypes.pp

+ 1 - 1
packages/fcl-web/src/base/fpmimetypes.pp

@@ -310,7 +310,7 @@ Var
   F : TFileStream;
 
 begin
-  F:=TFileStream.Create(AFileName,fmOpenRead);
+  F:=TFileStream.Create(AFileName,fmOpenRead or fmShareDenyWrite);
   try
     LoadFromStream(F);
   finally