Fix header encryption in cli7z
Review Request #125507 - Created Oct. 3, 2015 and submitted
7z gives an error when using the header encryptions switch (
-mhe=on|off) with archive types that don't support header encryption such as zip. This results in Ark failing to create new zip archives with cli7z.
This is now fixed by setting
$EncryptHeaderSwitchto empty when header encryption is off, instead of
This patch also fixes
CreateDialog::isHeaderEncryptionChecked()to only return true if
encryptHeaderCheckBoxis both enabled and checked, instead of just checked.
- Create new zip archive with/without encryption works.
- Create new 7z archive with/without header encryption works.