summaryrefslogtreecommitdiffstats
path: root/win/tkWinWm.c
diff options
context:
space:
mode:
authorculler <culler>2019-11-17 17:11:32 (GMT)
committerculler <culler>2019-11-17 17:11:32 (GMT)
commit48180e5c2ae6d5ad17cbf9eeb98b971c4e1b7a0f (patch)
tree5be3fdd6b4f2bdc8f71af49c7ff1a61dfc043f9c /win/tkWinWm.c
parent5fa1f5ca17abac3ec8d2d646fbf138502a0f4a59 (diff)
parent5bc76fef182c52a50e34b7f95c43f194ea8711fe (diff)
downloadtk-48180e5c2ae6d5ad17cbf9eeb98b971c4e1b7a0f.zip
tk-48180e5c2ae6d5ad17cbf9eeb98b971c4e1b7a0f.tar.gz
tk-48180e5c2ae6d5ad17cbf9eeb98b971c4e1b7a0f.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 ba10c63..e6a0a4b 100644
--- a/win/tkWinWm.c
+++ b/win/tkWinWm.c
@@ -4379,9 +4379,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;
}