Browse Source

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

Michaël Van Canneyt 3 năm trước cách đây
mục cha
commit
f8bf34303c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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