Compiled version

This commit is contained in:
Oleg Korshul
2022-11-10 23:25:20 +03:00
parent acce41ba3e
commit 1ce6307a56
156 changed files with 757 additions and 970 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/Base.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;
}