Robert Shearman : Call DisableThreadLibraryCalls for DLLs that don't
need thread
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jan 9 13:52:44 CST 2006
Module: wine
Branch: refs/heads/master
Commit: 811fb7614c22ffee8173a8939e06869cbfd40dbe
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=811fb7614c22ffee8173a8939e06869cbfd40dbe
Author: Robert Shearman <rob at codeweavers.com>
Date: Mon Jan 9 17:17:37 2006 +0100
Call DisableThreadLibraryCalls for DLLs that don't need thread
creation/destruction notifications.
---
dlls/crypt32/main.c | 1 +
dlls/rsaenh/rsaenh.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/crypt32/main.c b/dlls/crypt32/main.c
index df30206..53c6000 100644
--- a/dlls/crypt32/main.c
+++ b/dlls/crypt32/main.c
@@ -39,6 +39,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstance,
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(hInstance);
CRYPT_InitFunctionSets();
break;
case DLL_PROCESS_DETACH:
diff --git a/dlls/rsaenh/rsaenh.c b/dlls/rsaenh/rsaenh.c
index 2e9b701..1721a94 100644
--- a/dlls/rsaenh/rsaenh.c
+++ b/dlls/rsaenh/rsaenh.c
@@ -335,6 +335,7 @@ int WINAPI DllMain(HINSTANCE hInstance,
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(hInstance);
init_handle_table(&handle_table);
break;
More information about the wine-cvs
mailing list