From 34c66cf0c6bfb04c9222a5a0ac770a67ee457966 Mon Sep 17 00:00:00 2001 From: chengyemao Date: Mon, 17 Jan 2005 07:00:11 +0000 Subject: minor bug fix: should return 0 and indicate handled after processing WM_MENUSELECT message --- win/tkWinMenu.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/win/tkWinMenu.c b/win/tkWinMenu.c index 9f922ca..ef881e0 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.41 2005/01/13 01:48:03 chengyemao Exp $ + * RCS: @(#) $Id: tkWinMenu.c,v 1.42 2005/01/17 07:00:11 chengyemao Exp $ */ #define OEMRESOURCE @@ -1096,9 +1096,9 @@ TkWinHandleMenuEvent(phwnd, pMessage, pwParam, plParam, plResult) Tcl_BackgroundError(interp); } Tcl_Release((ClientData)interp); + *plResult = 0; + returnResult = 1; } - *plResult = 0; - returnResult = 1; break; } @@ -1210,9 +1210,9 @@ TkWinHandleMenuEvent(phwnd, pMessage, pwParam, plParam, plResult) - itemPtr->rcItem.top, 0, drawArrow); ckfree((char *) twdPtr); - *plResult = 1; - returnResult = 1; } + *plResult = 1; + returnResult = 1; break; } @@ -1262,6 +1262,8 @@ TkWinHandleMenuEvent(phwnd, pMessage, pwParam, plParam, plResult) } MenuSelectEvent(menuPtr); Tcl_ServiceAll(); + *plResult = 0; + returnResult = 1; } } break; -- cgit v0.12