Browse Source

Don't return S_FALSE if an archive is encrypted but no password is provided. This way 7-Zip can handle it and return a proper 'wrong password' error.

Martijn Laan 3 months ago
parent
commit
ae0e213d1c
1 changed files with 0 additions and 2 deletions
  1. 0 2
      Projects/Src/Compression.SevenZipDLLDecoder.pas

+ 0 - 2
Projects/Src/Compression.SevenZipDLLDecoder.pas

@@ -139,8 +139,6 @@ type
 function SevenZipSetPassword(const Password: String; out outPassword: WideString): HRESULT;
 function SevenZipSetPassword(const Password: String; out outPassword: WideString): HRESULT;
 begin
 begin
   try
   try
-    if Password = '' then
-      Exit(S_FALSE);
     outPassword := Password;
     outPassword := Password;
     Result := S_OK;
     Result := S_OK;
   except
   except