diff options
author | hobbs <hobbs@noemail.net> | 2006-11-24 18:11:53 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2006-11-24 18:11:53 (GMT) |
commit | 775cd95d4a4a110d5220c44369fd693e621446a5 (patch) | |
tree | f4cdeee107ef79f75ddfe6685b0f10eb03a0b3f2 /win | |
parent | d70b637e46df4b6e3c5f187c1843d940145edfc0 (diff) | |
download | tk-775cd95d4a4a110d5220c44369fd693e621446a5.zip tk-775cd95d4a4a110d5220c44369fd693e621446a5.tar.gz tk-775cd95d4a4a110d5220c44369fd693e621446a5.tar.bz2 |
* unix/tkUnixMenu.c (DrawMenuUnderline): bound Tcl_UtfAtIndex usage
* tests/menu.test (menu-36.1): [Bug 1599877]
FossilOrigin-Name: a019951dd336f1e1870ac69c91b0d2d08f665a83
Diffstat (limited to 'win')
-rw-r--r-- | win/tkWinMenu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tkWinMenu.c b/win/tkWinMenu.c index 8bd4e16..5394353 100644 --- a/win/tkWinMenu.c +++ b/win/tkWinMenu.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinMenu.c,v 1.21.2.7 2006/11/24 01:52:08 hobbs Exp $ + * RCS: @(#) $Id: tkWinMenu.c,v 1.21.2.8 2006/11/24 18:11:54 hobbs Exp $ */ #define OEMRESOURCE @@ -1059,7 +1059,7 @@ TkWinHandleMenuEvent(phwnd, pMessage, pwParam, plParam, plResult) Tcl_GetUnicodeFromObj(labelPtr, &len); if (underline < len) { char *label; - label = Tcl_GetStringFromObj(labelPtr, &len); + label = Tcl_GetStringFromObj(labelPtr, NULL); if (CharUpper((LPTSTR) menuChar) == CharUpper((LPTSTR) *Tcl_UtfAtIndex(label, underline))) { @@ -1833,7 +1833,7 @@ DrawMenuUnderline( if (mePtr->underline < len) { CONST char *label, *start, *end; - label = Tcl_GetStringFromObj(mePtr->labelPtr, &len); + label = Tcl_GetStringFromObj(mePtr->labelPtr, NULL); start = Tcl_UtfAtIndex(label, mePtr->underline); end = Tcl_UtfNext(start); Tk_UnderlineChars(menuPtr->display, d, |