Commit 371c4205 authored by Juergen Schmied's avatar Juergen Schmied Committed by Alexandre Julliard

Made TrackPopupMenu with TPM_RETURNCMD returning the id instead of

true.
parent c87736df
......@@ -2790,9 +2790,8 @@ static INT MENU_TrackMenu( HMENU hmenu, UINT wFlags, INT x, INT y,
/* Reset the variable for hiding menu */
menu->bTimeToHide = FALSE;
/* Return 1 if executedMenuId != -1.
The return value is only used by TrackPopupMenu */
return ((executedMenuId != -1) ? 1 : 0);
/* The return value is only used by TrackPopupMenu */
return ((executedMenuId != -1) ? executedMenuId : 0);
}
/***********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment