diff options
Diffstat (limited to 'CPP/7zip/Archive/GZip/GZipUpdate.cpp')
-rwxr-xr-x | CPP/7zip/Archive/GZip/GZipUpdate.cpp | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/CPP/7zip/Archive/GZip/GZipUpdate.cpp b/CPP/7zip/Archive/GZip/GZipUpdate.cpp index 1f5ebd0e..8f8a2c4f 100755 --- a/CPP/7zip/Archive/GZip/GZipUpdate.cpp +++ b/CPP/7zip/Archive/GZip/GZipUpdate.cpp @@ -22,11 +22,16 @@ namespace NGZip { static const CMethodId kMethodId_Deflate = 0x040108; -static const Byte kHostOS = NFileHeader::NHostOS::kFAT; +static const Byte kHostOS = + #ifdef _WIN32 + NFileHeader::NHostOS::kFAT; + #else + NFileHeader::NHostOS::kUnix; + #endif HRESULT UpdateArchive( DECL_EXTERNAL_CODECS_LOC_VARS - IInStream * /* inStream */, + IInStream * /* inStream */, UInt64 unpackSize, ISequentialOutStream *outStream, const CItem &newItem, @@ -73,17 +78,17 @@ HRESULT UpdateArchive( if (!deflateEncoder) return E_NOTIMPL; - NWindows::NCOM::CPropVariant properties[] = - { - compressionMethod.Algo, - compressionMethod.NumPasses, + NWindows::NCOM::CPropVariant properties[] = + { + compressionMethod.Algo, + compressionMethod.NumPasses, compressionMethod.NumFastBytes, compressionMethod.NumMatchFinderCycles }; - PROPID propIDs[] = - { + PROPID propIDs[] = + { NCoderPropID::kAlgorithm, - NCoderPropID::kNumPasses, + NCoderPropID::kNumPasses, NCoderPropID::kNumFastBytes, NCoderPropID::kMatchFinderCycles }; |