XlsFormatFile - fix users files

This commit is contained in:
ElenaSubbotina
2018-06-19 13:48:57 +03:00
parent c462f522d6
commit 5893b93e3a
2 changed files with 2 additions and 2 deletions

View File

@ -566,7 +566,7 @@ bool ECMACryptFile::EncryptOfficeFile(const std::wstring &file_name_inp, const s
if (false == documentID.empty())
{
std::string utfDocumentID = NSFile::CUtf8Converter::GetUtf8StringFromUnicode(documentID);
pStream = new POLE::Stream(pStorage, L"DocumentID", true, lengthData);
pStream = new POLE::Stream(pStorage, L"DocumentID", true, utfDocumentID.length());
pStream->write((BYTE*)utfDocumentID.c_str(), utfDocumentID.length());