summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorchengyemao <chengyemao@noemail.net>2005-04-28 02:40:19 (GMT)
committerchengyemao <chengyemao@noemail.net>2005-04-28 02:40:19 (GMT)
commit8f75d1497b1a40739760beb00aacaf37bdf69c06 (patch)
tree257717d819598bc47fdee78d4624aaa99bd25d59 /win
parent924d7fbde1b807096f0acad9c5b4e24cde9a326e (diff)
downloadtk-8f75d1497b1a40739760beb00aacaf37bdf69c06.zip
tk-8f75d1497b1a40739760beb00aacaf37bdf69c06.tar.gz
tk-8f75d1497b1a40739760beb00aacaf37bdf69c06.tar.bz2
Fixed bug # 1189939
FossilOrigin-Name: 27b4784b82ae614eb67a2828fe4ede58f4e656fe
Diffstat (limited to 'win')
-rw-r--r--win/tkWinMenu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tkWinMenu.c b/win/tkWinMenu.c
index 766e3c3..a33ddb8 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.43 2005/01/18 15:24:18 chengyemao Exp $
+ * RCS: @(#) $Id: tkWinMenu.c,v 1.44 2005/04/28 02:40:19 chengyemao Exp $
*/
#define OEMRESOURCE
@@ -1239,8 +1239,8 @@ TkWinHandleMenuEvent(phwnd, pMessage, pwParam, plParam, plResult)
if (menuPtr != NULL) {
long entryIndex = LOWORD(*pwParam);
mePtr = NULL;
- if (flags != 0xFFFF && entryIndex < menuPtr->numEntries) {
- if (flags & MF_POPUP) {
+ if (flags != 0xFFFF) {
+ if ((flags & MF_POPUP) && (entryIndex < menuPtr->numEntries)) {
mePtr = menuPtr->entries[entryIndex];
} else {
hashEntryPtr = Tcl_FindHashEntry(