summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authora_kovalenko <a_kovalenko>2003-12-16 19:53:33 (GMT)
committera_kovalenko <a_kovalenko>2003-12-16 19:53:33 (GMT)
commitc40561338cbce193ff3cc4e6580c6a1b657bd754 (patch)
tree80dc527a4fed6a3a07b7300177b988f787548f6c /win
parent9f9858b710e96a6af4c4bafed5c09692dc4034a8 (diff)
downloadtk-c40561338cbce193ff3cc4e6580c6a1b657bd754.zip
tk-c40561338cbce193ff3cc4e6580c6a1b657bd754.tar.gz
tk-c40561338cbce193ff3cc4e6580c6a1b657bd754.tar.bz2
Check for TK_ALREADY_DEAD to avoid handling of dead windows.
Diffstat (limited to 'win')
-rw-r--r--win/tkWinWm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c
index e92198c..303ebd2 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.58 2003/12/16 03:29:12 davygrvy Exp $
+ * RCS: @(#) $Id: tkWinWm.c,v 1.59 2003/12/16 19:53:33 a_kovalenko Exp $
*/
#include "tkWinInt.h"
@@ -6407,7 +6407,7 @@ InstallColormaps(hwnd, message, isForemost)
ThreadSpecificData *tsdPtr = (ThreadSpecificData *)
Tcl_GetThreadData(&dataKey, sizeof(ThreadSpecificData));
- if (winPtr == NULL) {
+ if (winPtr == NULL || (winPtr->flags & TK_ALREADY_DEAD) ) {
return 0;
}