ZipArchive.st
changeset 3852 9f672a905f2d
parent 3809 c87f8b4f907c
child 3853 a7a4481d6851
child 3979 0dc60bd4deac
--- a/ZipArchive.st	Thu May 19 19:33:38 2016 +0200
+++ b/ZipArchive.st	Mon May 30 16:34:10 2016 +0200
@@ -3339,7 +3339,9 @@
     "initialize the archive to read from aPositionableStream"
 
     file notNil ifTrue: [
-        self closeFile.
+        file ~~ aPositionableStream ifTrue: [
+            self closeFile.
+        ].
     ].
 
     mode := #read.
@@ -3991,7 +3993,6 @@
     ^ false.
 ! !
 
-
 !ZipArchive methodsFor:'reading'!
 
 extract:fileName
@@ -4101,7 +4102,6 @@
     "Created: / 21-11-2010 / 11:51:41 / cg"
 ! !
 
-
 !ZipArchive methodsFor:'reading - stream'!
 
 extract:fileName intoStream: aWriteStream