mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 18:20:26 +01:00
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:
parent
b530485f92
commit
1df5f56449
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user