You've already forked linux-packaging-mono
Imported Upstream version 5.0.0.42
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
This commit is contained in:
parent
1190d13a04
commit
6bdd276d05
@@ -31,7 +31,7 @@ namespace zipsharp
|
||||
public ZipArchive (Stream stream, Append append, bool ownsStream)
|
||||
{
|
||||
Stream = new ZipStream (stream, ownsStream);
|
||||
Handle = NativeZip.OpenArchive (Stream.IOFunctions, append);
|
||||
Handle = NativeVersion.Use32Bit ? NativeZip.OpenArchive32 (Stream.IOFunctions32, append) : NativeZip.OpenArchive64 (Stream.IOFunctions64, append);
|
||||
}
|
||||
|
||||
|
||||
@@ -61,8 +61,11 @@ namespace zipsharp
|
||||
{
|
||||
if (FileActive)
|
||||
throw new InvalidOperationException ("A file is already open");
|
||||
|
||||
NativeZip.OpenFile (Handle, filename, ConvertCompression (option));
|
||||
|
||||
if (NativeVersion.Use32Bit)
|
||||
NativeZip.OpenFile32 (Handle, filename, ConvertCompression (option));
|
||||
else
|
||||
NativeZip.OpenFile64 (Handle, filename, ConvertCompression (option));
|
||||
return new ZipWriteStream (this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user