Made TrackPopupMenu with TPM_RETURNCMD returning the id instead of

true.
This commit is contained in:
Juergen Schmied 1999-10-13 12:27:44 +00:00 committed by Alexandre Julliard
parent c87736df1f
commit 371c420549
1 changed files with 2 additions and 3 deletions

View File

@ -2790,9 +2790,8 @@ static INT MENU_TrackMenu( HMENU hmenu, UINT wFlags, INT x, INT y,
/* Reset the variable for hiding menu */ /* Reset the variable for hiding menu */
menu->bTimeToHide = FALSE; menu->bTimeToHide = FALSE;
/* Return 1 if executedMenuId != -1. /* The return value is only used by TrackPopupMenu */
The return value is only used by TrackPopupMenu */ return ((executedMenuId != -1) ? executedMenuId : 0);
return ((executedMenuId != -1) ? 1 : 0);
} }
/*********************************************************************** /***********************************************************************