summaryrefslogtreecommitdiffstats
path: root/win/tkWinWm.c
diff options
context:
space:
mode:
authorculler <culler>2019-11-17 17:11:04 (GMT)
committerculler <culler>2019-11-17 17:11:04 (GMT)
commit5bc76fef182c52a50e34b7f95c43f194ea8711fe (patch)
treee490d8b8b3f4aaee73df06d359836ef9fb60f7d8 /win/tkWinWm.c
parent1dcfa065cbd9c94750fabda9313008e76e4d9c87 (diff)
parent770d3ab7c71b257d3aee36fbd5346a71be5df6dd (diff)
downloadtk-5bc76fef182c52a50e34b7f95c43f194ea8711fe.zip
tk-5bc76fef182c52a50e34b7f95c43f194ea8711fe.tar.gz
tk-5bc76fef182c52a50e34b7f95c43f194ea8711fe.tar.bz2
Fix [53d28027e3]: macOS crashes with 0x0 image for wm iconphoto; make wm iconphoto behavior consistent between platforms.
Diffstat (limited to 'win/tkWinWm.c')
-rw-r--r--win/tkWinWm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tkWinWm.c b/win/tkWinWm.c
index 7df5dcf..bddbe05 100644
--- a/win/tkWinWm.c
+++ b/win/tkWinWm.c
@@ -4384,9 +4384,9 @@ WmIconphotoCmd(
if (!iconInfo.hbmColor) {
ckfree(lpIR);
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
- "failed to create color bitmap for \"%s\"",
+ "failed to create an iconphoto with image \"%s\"",
Tcl_GetString(objv[i])));
- Tcl_SetErrorCode(interp, "TK", "WM", "ICONPHOTO", "BITMAP", NULL);
+ Tcl_SetErrorCode(interp, "TK", "WM", "ICONPHOTO", "IMAGE", NULL);
return TCL_ERROR;
}