diff options
author | redman <redman@noemail.net> | 1999-07-01 00:39:38 (GMT) |
---|---|---|
committer | redman <redman@noemail.net> | 1999-07-01 00:39:38 (GMT) |
commit | 48983800722593d1fab54871e4a97b1c03f25024 (patch) | |
tree | d6929409d78b4fb5eb9279cff651a5b7217fb203 /win/tkWinWm.c | |
parent | 03b780098b41113bd011c3f0c9376765279b8976 (diff) | |
download | tk-48983800722593d1fab54871e4a97b1c03f25024.zip tk-48983800722593d1fab54871e4a97b1c03f25024.tar.gz tk-48983800722593d1fab54871e4a97b1c03f25024.tar.bz2 |
Patches from Bug: 2068 2080 2269
FossilOrigin-Name: 4bec4dc6eedf8f345bec167088cd8c7d76a49829
Diffstat (limited to 'win/tkWinWm.c')
-rw-r--r-- | win/tkWinWm.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c index 71b78ca..ca2b834 100644 --- a/win/tkWinWm.c +++ b/win/tkWinWm.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinWm.c,v 1.8 1999/04/16 01:51:54 stanton Exp $ + * RCS: @(#) $Id: tkWinWm.c,v 1.9 1999/07/01 00:39:48 redman Exp $ */ #include "tkWinInt.h" @@ -518,7 +518,20 @@ void TkWinWmCleanup(hInstance) HINSTANCE hInstance; { - ThreadSpecificData *tsdPtr = (ThreadSpecificData *) + ThreadSpecificData *tsdPtr; + + /* + * If we're using stubs to access the Tcl library, and they + * haven't been initialized, we can't call Tcl_GetThreadData. + */ + +#ifdef USE_TCL_STUBS + if (tclStubsPtr == NULL) { + return; + } +#endif + + tsdPtr = (ThreadSpecificData *) Tcl_GetThreadData(&dataKey, sizeof(ThreadSpecificData)); if (!tsdPtr->initialized) { |