fixed GH #993: Invalid zip format when opening a docx in word [host system type is now always set to 0, as this is the correct thing to do]

This commit is contained in:
Guenter Obiltschnig 2016-04-23 09:20:04 +02:00
parent b530485f92
commit 1df5f56449

View File

@ -46,18 +46,7 @@ ZipLocalFileHeader::ZipLocalFileHeader(const Poco::Path& fileName,
{
std::memcpy(_rawHeader, HEADER, ZipCommon::HEADER_SIZE);
std::memset(_rawHeader+ZipCommon::HEADER_SIZE, 0, FULLHEADER_SIZE - ZipCommon::HEADER_SIZE);
ZipCommon::HostSystem hs = ZipCommon::HS_FAT;
#if (POCO_OS == POCO_OS_CYGWIN)
hs = ZipCommon::HS_UNIX;
#endif
#if (POCO_OS == POCO_OS_VMS)
hs = ZipCommon::HS_VMS;
#endif
#if defined(POCO_OS_FAMILY_UNIX)
hs = ZipCommon::HS_UNIX;
#endif
setHostSystem(hs);
setHostSystem(ZipCommon::HS_FAT);
setEncryption(false);
setExtraFieldSize(0);
setLastModifiedAt(lastModifiedAt);