Explorar o código

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 hai 3 meses
pai
achega
ae0e213d1c
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  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;
 begin
   try
-    if Password = '' then
-      Exit(S_FALSE);
     outPassword := Password;
     Result := S_OK;
   except