Call DisableThreadLibraryCalls for DLLs that don't need thread

creation/destruction notifications.
This commit is contained in:
Robert Shearman 2006-01-09 17:17:37 +01:00 committed by Alexandre Julliard
parent dc8c6bb90b
commit 811fb7614c
2 changed files with 2 additions and 0 deletions

View File

@ -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:

View File

@ -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;