Explorar el Código

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

Michaël Van Canneyt hace 3 años
padre
commit
f8bf34303c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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