From 301f7bc21755cdf7c91c9acd50ddcdcf0285f779 Mon Sep 17 00:00:00 2001 From: xuri Date: Mon, 27 Jun 2022 21:00:59 +0800 Subject: This closes #1260, fixes compiling issue under 32-bit, and new formula functions - ref #65, new formula functions: DCOUNT and DCOUNTA - support percentile symbol in condition criteria expression - this update dependencies module --- crypt.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crypt.go') diff --git a/crypt.go b/crypt.go index 239208d..b00ccdf 100644 --- a/crypt.go +++ b/crypt.go @@ -1226,10 +1226,10 @@ func (c *cfb) Writer(encryptionInfoBuffer, encryptedPackage []byte) []byte { } MSAT = c.writeMSAT(MSATBlocks, SATBlocks, MSAT) blocks, SAT := c.writeSAT(MSATBlocks, SATBlocks, SSATBlocks, directoryBlocks, fileBlocks, streamBlocks, SAT) - storage.writeUint32(0xE011CFD0) - storage.writeUint32(0xE11AB1A1) - storage.writeUint64(0x00) - storage.writeUint64(0x00) + for i := 0; i < 8; i++ { + storage.writeBytes([]byte{oleIdentifier[i]}) + } + storage.writeBytes(make([]byte, 16)) storage.writeUint16(0x003E) storage.writeUint16(0x0003) storage.writeUint16(-2) -- cgit v1.2.1