Merge remote-tracking branch 'origin/hotfix/v7.4.1' into develop

This commit is contained in:
Elena.Subbotina
2023-07-24 09:31:56 +03:00
7 changed files with 20 additions and 6 deletions

View File

@ -1095,7 +1095,7 @@ bool ECMACryptFile::DecryptOfficeFile(const std::wstring &file_name_inp, const s
{
NSFile::CFileBinary f;
f.CreateFileW(file_name_out);
f.WriteFile(data_out, lengthData);
f.WriteFile(data_out, (std::min)((int)lengthData, readData));
f.CloseFile();
delete []data_out;