2
0
Эх сурвалжийг харах

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 сар өмнө
parent
commit
ae0e213d1c

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

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