diff options
author | Igor Pavlov <ipavlov@users.sourceforge.net> | 2009-06-02 04:00:00 +0400 |
---|---|---|
committer | Kornel LesiĆski <kornel@geekhood.net> | 2016-05-28 02:15:59 +0300 |
commit | 829409452d85cd6dd9dfc9151f109d6e13a2bb1c (patch) | |
tree | e0acaea47044d167f35fa197584dee1bde41c329 /CPP/7zip/UI/GUI/GUI.cpp | |
parent | 8874e4fbc9faabdcff719b9b2ac8ebad4f282bbe (diff) |
9.04 beta
Diffstat (limited to 'CPP/7zip/UI/GUI/GUI.cpp')
-rwxr-xr-x | CPP/7zip/UI/GUI/GUI.cpp | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/CPP/7zip/UI/GUI/GUI.cpp b/CPP/7zip/UI/GUI/GUI.cpp index e1117188..3a1a633e 100755 --- a/CPP/7zip/UI/GUI/GUI.cpp +++ b/CPP/7zip/UI/GUI/GUI.cpp @@ -4,31 +4,27 @@ #include <initguid.h> -extern "C" -{ - #include "../../../../C/Alloc.h" -} +#include "../../../../C/Alloc.h" -#include "Common/NewHandler.h" -#include "Common/StringConvert.h" #include "Common/CommandLineParser.h" #include "Common/MyException.h" +#include "Common/StringConvert.h" #include "Windows/Error.h" #ifdef _WIN32 #include "Windows/MemoryLock.h" #endif -#include "../FileManager/StringUtils.h" - -#include "../Common/ExitCode.h" #include "../Common/ArchiveCommandLine.h" +#include "../Common/ExitCode.h" -#include "ExtractRes.h" +#include "../FileManager/StringUtils.h" +#include "BenchmarkDialog.h" #include "ExtractGUI.h" #include "UpdateGUI.h" -#include "BenchmarkDialog.h" + +#include "ExtractRes.h" using namespace NWindows; @@ -119,8 +115,12 @@ static int Main2() CExtractCallbackImp *ecs = new CExtractCallbackImp; CMyComPtr<IFolderArchiveExtractCallback> extractCallback = ecs; ecs->ProgressDialog.CompressingMode = false; + + #ifndef _NO_CRYPTO ecs->PasswordIsDefined = options.PasswordEnabled; ecs->Password = options.Password; + #endif + ecs->Init(); CExtractOptions eo; @@ -130,6 +130,7 @@ static int Main2() eo.OverwriteMode = options.OverwriteMode; eo.PathMode = options.Command.GetPathMode(); eo.TestMode = options.Command.IsTestMode(); + eo.CalcCrc = options.CalcCrc; #ifdef COMPRESS_MT eo.Properties = options.ExtractProperties; #endif @@ -146,14 +147,19 @@ static int Main2() } else if (options.Command.IsFromUpdateGroup()) { - bool passwordIsDefined = - options.PasswordEnabled && !options.Password.IsEmpty(); + #ifndef _NO_CRYPTO + bool passwordIsDefined = options.PasswordEnabled && !options.Password.IsEmpty(); + #endif CUpdateCallbackGUI callback; // callback.EnablePercents = options.EnablePercents; + + #ifndef _NO_CRYPTO callback.PasswordIsDefined = passwordIsDefined; callback.AskPassword = options.PasswordEnabled && options.Password.IsEmpty(); callback.Password = options.Password; + #endif + // callback.StdOutMode = options.UpdateOptions.StdOutMode; callback.Init(); |