Merge remote-tracking branch 'origin/fix/txt' into fix/v7.3.0-refactoring

This commit is contained in:
Elena Subbotina
2022-11-11 22:51:44 +03:00
359 changed files with 35599 additions and 36101 deletions

View File

@ -52,8 +52,7 @@
#include "../../Common/3dParty/cryptopp/zdeflate.h"
#include "../../Common/DocxFormat/Source/Base/unicode_util.h"
#include "../../Common/DocxFormat/Source/Base/Types_32.h"
#include "../../Common/DocxFormat/Source/XML/Utils.h"
#include "../../Common/DocxFormat/Source/Base/Unit.h"
#include "../../DesktopEditor/common/File.h"
static const unsigned char encrVerifierHashInputBlockKey[8] = { 0xfe, 0xa7, 0xd2, 0x76, 0x3b, 0x4b, 0x9e, 0x79 };
@ -900,7 +899,7 @@ bool ECMAWriteProtect::VerifyWrike()
wPasswordHash ^= (0x8000 | ('N' << 8) | 'K');
wPasswordHash ^= p.length();
std::string sPasswordHash = XmlUtils::IntToString(wPasswordHash, "%4.4X");
std::string sPasswordHash = XmlUtils::ToString(wPasswordHash, "%4.4X");
return data.hashValue == sPasswordHash;
}

View File

@ -34,7 +34,7 @@
#include "CryptTransform.h"
#include "../../Common/3dParty/pole/pole.h"
#include "../../Common/DocxFormat/Source/Base/Types_32.h"
#include "../../Common/DocxFormat/Source/Base/Base.h"
#include "../../DesktopEditor/common/File.h"
#include "../../DesktopEditor/common/SystemUtils.h"