mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-19 00:46:03 +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
664be2c791
commit
4d7f2426f1
@ -48,18 +48,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(lastModified);
|
||||
|
Loading…
x
Reference in New Issue
Block a user