Call DisableThreadLibraryCalls for DLLs that don't need thread
creation/destruction notifications.
This commit is contained in:
parent
dc8c6bb90b
commit
811fb7614c
|
@ -39,6 +39,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD fdwReason, PVOID pvReserved)
|
|||
switch (fdwReason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
DisableThreadLibraryCalls(hInstance);
|
||||
CRYPT_InitFunctionSets();
|
||||
break;
|
||||
case DLL_PROCESS_DETACH:
|
||||
|
|
|
@ -335,6 +335,7 @@ int WINAPI DllMain(HINSTANCE hInstance, DWORD fdwReason, PVOID pvReserved)
|
|||
switch (fdwReason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
DisableThreadLibraryCalls(hInstance);
|
||||
init_handle_table(&handle_table);
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue