Index: src/chext/dllmain.cpp =================================================================== diff -u -N -r8068e0c351055554340ac9755d1bc846893bf2b8 -rebc7fabbd2d59f9a0f723ea480b5374cc393ec12 --- src/chext/dllmain.cpp (.../dllmain.cpp) (revision 8068e0c351055554340ac9755d1bc846893bf2b8) +++ src/chext/dllmain.cpp (.../dllmain.cpp) (revision ebc7fabbd2d59f9a0f723ea480b5374cc393ec12) @@ -4,7 +4,6 @@ #include "MenuExt.h" #include "DropMenuExt.h" #include "ShellExtControl.h" -#include "TLogger.h" CCHExtModule _AtlModule; @@ -15,31 +14,8 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved) { - if (dwReason == DLL_PROCESS_ATTACH) - { + if(dwReason == DLL_PROCESS_ATTACH) DisableThreadLibraryCalls(hInstance); - try - { - TLogger lg; - BOOST_LOG_SEV(lg, debug) << L"DllMain - attaching to process: " << hInstance << L", " << dwReason << L", " << lpReserved; - } - catch (const std::exception&) - { - } - } - else if (dwReason == DLL_PROCESS_DETACH) - { - try - { - TLogger lg; - BOOST_LOG_SEV(lg, debug) << L"DllMain - detaching from process: " << hInstance << L", " << dwReason << L", " << lpReserved; - } - catch (const std::exception&) - { - - } - } - return _AtlModule.DllMain(dwReason, lpReserved); }