Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '7zip/Compress/LZMA/DllExports.cpp')
-rwxr-xr-x7zip/Compress/LZMA/DllExports.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/7zip/Compress/LZMA/DllExports.cpp b/7zip/Compress/LZMA/DllExports.cpp
index 81c75007..efd28a46 100755
--- a/7zip/Compress/LZMA/DllExports.cpp
+++ b/7zip/Compress/LZMA/DllExports.cpp
@@ -4,6 +4,9 @@
#include "../../../Common/MyInitGuid.h"
#include "../../../Common/ComTry.h"
+#ifdef _WIN32
+#include "../../../Common/Alloc.h"
+#endif
#include "LZMAEncoder.h"
#include "LZMADecoder.h"
@@ -20,8 +23,14 @@ DEFINE_GUID(CLSID_CLZMAEncoder,
extern "C"
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID /*lpReserved*/)
{
- // NCompress::NRangeCoder::g_PriceTables.Init();
- // CCRC::InitTable();
+ if (dwReason == DLL_PROCESS_ATTACH)
+ {
+ // NCompress::NRangeCoder::g_PriceTables.Init();
+ // CCRC::InitTable();
+ #ifdef _WIN32
+ SetLargePageSize();
+ #endif
+ }
return TRUE;
}