diff options
Diffstat (limited to 'oox/source/crypto/AgileEngine.cxx')
-rw-r--r-- | oox/source/crypto/AgileEngine.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/oox/source/crypto/AgileEngine.cxx b/oox/source/crypto/AgileEngine.cxx index 3ae847a9994a..d207cf533a7f 100644 --- a/oox/source/crypto/AgileEngine.cxx +++ b/oox/source/crypto/AgileEngine.cxx @@ -146,8 +146,7 @@ bool AgileEngine::decrypt( BinaryXInputStream& aInputStream, BinaryXOutputStream& aOutputStream) { - sal_uInt32 totalSize; - aInputStream >> totalSize; // Document unencrypted size - 4 bytes + sal_uInt32 totalSize = aInputStream.readuInt32(); // Document unencrypted size - 4 bytes aInputStream.skip( 4 ); // Reserved 4 Bytes vector<sal_uInt8> keyDataSalt = mInfo.keyDataSalt; |