Explorar o código

* allow chmls extractall without second param. Patch by Reinier, mantis #26778

git-svn-id: trunk@28718 -
marco %!s(int64=11) %!d(string=hai) anos
pai
achega
a8aa619228
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      packages/chm/src/chmls.lpr

+ 3 - 1
packages/chm/src/chmls.lpr

@@ -1045,7 +1045,9 @@ begin
                      end;
                    end;
       cmdextractall: begin
-                      if length(localparams)=2 then
+                      if length(localparams)=1 then //extract into current directory
+                        ExtractFileAll(localparams[0],GetCurrentDir)
+                      else if length(localparams)=2 then //extract into specified dir
                         ExtractFileall(localparams[0],localparams[1])
                       else
                         WrongNrParam(cmdnames[cmd],length(localparams));