浏览代码

* Fix bug #35211, open mode when unzipping

git-svn-id: trunk@41648 -
michael 6 年之前
父节点
当前提交
ea5ca774a1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/paszlib/src/ziputils.pas

+ 1 - 1
packages/paszlib/src/ziputils.pas

@@ -98,7 +98,7 @@ begin
   fp := nil;
   try
     case mode of
-      fopenread: fp  := TFileStream.Create(strpas(filename), fmOpenRead);
+      fopenread: fp  := TFileStream.Create(strpas(filename), fmOpenRead or fmShareDenyWrite);
       fopenwrite: fp := TFileStream.Create(strpas(filename), fmCreate);
       fappendwrite:
       begin