Yakov - 3 days ago

The following code changes can be made:

--- a/CPP/7zip/UI/GUI/CompressDialog.cpp
+++ b/CPP/7zip/UI/GUI/CompressDialog.cpp
@@ -1742,8 +1742,8 @@ void CCompressDialog::SetEncryptionMethod()
     // if (ZipCryptoIsAllowed)
     {
       ComboBox_AddStringAscii(_encryptionMethod, "ZipCrypto");
-      sel = (encryptionMethod.IsPrefixedBy_Ascii_NoCase("aes") ? 1 : 0);
-      _default_encryptionMethod_Index = 0;
+      sel = (encryptionMethod.IsPrefixedBy_Ascii_NoCase("zipcrypto") ? 0 : 1);
+      _default_encryptionMethod_Index = 1;
     }
     ComboBox_AddStringAscii(_encryptionMethod, "AES-256");
     _encryptionMethod.SetCurSel(sel);