This commit is contained in:
Elena.Subbotina
2023-06-09 18:27:12 +03:00
parent 9fc7aa5bca
commit a0ff455786
6 changed files with 22 additions and 9 deletions

View File

@ -942,9 +942,10 @@ bool ECMACryptFile::EncryptOfficeFile(const std::wstring &file_name_inp, const s
}
}
//-------------------------------------------------------------------
bool result = true;
if (bLargeFile)
{
pStorageNew->Save(file_name_out);
result = pStorageNew->Save(file_name_out);
pStorageNew->Close();
delete pStorageNew;
}
@ -974,7 +975,7 @@ bool ECMACryptFile::EncryptOfficeFile(const std::wstring &file_name_inp, const s
// }
////test back---------------------------------------------------------------------------------test back
return true;
return result;
}
bool ECMACryptFile::DecryptOfficeFile(const std::wstring &file_name_inp, const std::wstring &file_name_out, const std::wstring &password, bool & bDataIntegrity)
{