summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authordavygrvy <davygrvy@pobox.com>2004-04-24 07:45:58 (GMT)
committerdavygrvy <davygrvy@pobox.com>2004-04-24 07:45:58 (GMT)
commit818ba470a09e0139346184044e9fad9505546445 (patch)
tree12c7befa29563247974b73ca2ff5c1f4e65b4de3 /win
parent2fa9d90ff11eceef30cdd8eab3b1795e57041ab7 (diff)
downloadtcl-818ba470a09e0139346184044e9fad9505546445.zip
tcl-818ba470a09e0139346184044e9fad9505546445.tar.gz
tcl-818ba470a09e0139346184044e9fad9505546445.tar.bz2
(DllMain): Added DisableThreadLibraryCalls() for the DLL_PROCESS_ATTACH
case. We're not interested in knowing about DLL_THREAD_ATTACH, so disable it.
Diffstat (limited to 'win')
-rw-r--r--win/tclWin32Dll.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/win/tclWin32Dll.c b/win/tclWin32Dll.c
index d8a360c..f65b706 100644
--- a/win/tclWin32Dll.c
+++ b/win/tclWin32Dll.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWin32Dll.c,v 1.34 2004/04/23 07:41:08 davygrvy Exp $
+ * RCS: @(#) $Id: tclWin32Dll.c,v 1.35 2004/04/24 07:45:58 davygrvy Exp $
*/
#include "tclWinInt.h"
@@ -246,6 +246,7 @@ DllMain(hInst, reason, reserved)
{
switch (reason) {
case DLL_PROCESS_ATTACH:
+ DisableThreadLibraryCalls(hInst);
TclWinInit(hInst);
return TRUE;