diff options
author | Mikhail Voitenko <mav@openoffice.org> | 2002-04-29 14:04:19 +0000 |
---|---|---|
committer | Mikhail Voitenko <mav@openoffice.org> | 2002-04-29 14:04:19 +0000 |
commit | 639ddb6d7632bbc6a892dd60d9e01e26b790c275 (patch) | |
tree | 16d71d6b647ad0be11fd5c32dc12480e2361d969 /package | |
parent | 2121ded9b52db7fbf467a2270e54e7d060d64c46 (diff) |
#98945# fill CRC32 in correct way
Diffstat (limited to 'package')
-rw-r--r-- | package/source/zippackage/ZipPackage.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx index 38245d20cdf4..8622accbf76d 100644 --- a/package/source/zippackage/ZipPackage.cxx +++ b/package/source/zippackage/ZipPackage.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ZipPackage.cxx,v $ * - * $Revision: 1.80 $ + * $Revision: 1.81 $ * - * last change: $Author: mav $ $Date: 2002-04-29 14:30:06 $ + * last change: $Author: mav $ $Date: 2002-04-29 15:04:19 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -727,12 +727,16 @@ void ZipPackage::WriteMimetypeMagicFile( ZipOutputStream& aZipOut ) Sequence< sal_Int8 > aType( (sal_Int8*)sMediaType.getStr(), nBufferLength ); + pEntry->sName = sMime; pEntry->nMethod = STORED; - pEntry->nCrc = pEntry->nSize = pEntry->nCompressedSize = nBufferLength; pEntry->nTime = ZipOutputStream::getCurrentDosTime(); + CRC32 aCRC32; + aCRC32.update( aType ); + pEntry->nCrc = aCRC32.getValue(); + try { vos::ORef < EncryptionData > xEmpty; |