summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogelnew1@free.fr <fvogel>2016-07-26 09:36:31 (GMT)
committerfvogelnew1@free.fr <fvogel>2016-07-26 09:36:31 (GMT)
commit77bdbca77290e8b77470936c9efbf2764c3c5bfc (patch)
tree550cada2e21c788eefbd5f087c8f14aa5290c0ea
parentabb0e8b4a38b6850ae0981e23b4a41d79aa5de80 (diff)
parent8fbd82bba009b51fb595aa19aa8d07eb5353a5a3 (diff)
downloadtk-77bdbca77290e8b77470936c9efbf2764c3c5bfc.zip
tk-77bdbca77290e8b77470936c9efbf2764c3c5bfc.tar.gz
tk-77bdbca77290e8b77470936c9efbf2764c3c5bfc.tar.bz2
merged core-8-6-branch
-rw-r--r--generic/tkBusy.c4
-rw-r--r--generic/tkWindow.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/generic/tkBusy.c b/generic/tkBusy.c
index 65248a2..b36d453 100644
--- a/generic/tkBusy.c
+++ b/generic/tkBusy.c
@@ -433,6 +433,10 @@ MakeTransparentWindowExist(
TkpMakeTransparentWindowExist(tkwin, parent);
+ if (winPtr->window == None) {
+ return; /* Platform didn't make Window. */
+ }
+
dispPtr = winPtr->dispPtr;
hPtr = Tcl_CreateHashEntry(&dispPtr->winTable, (char *) winPtr->window,
&notUsed);
diff --git a/generic/tkWindow.c b/generic/tkWindow.c
index 7afb031..0c60321 100644
--- a/generic/tkWindow.c
+++ b/generic/tkWindow.c
@@ -2351,6 +2351,9 @@ Tk_IdToWindow(
break;
}
}
+ if (window == None) {
+ return NULL;
+ }
hPtr = Tcl_FindHashEntry(&dispPtr->winTable, (char *) window);
if (hPtr == NULL) {