user32: A button-up in the menu-bar, but not on an item, should stop the tracking.
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
580915040e
commit
e60bc27dd2
|
@ -2647,7 +2647,10 @@ static INT MENU_ButtonUp( MTRACKER* pmt, HMENU hPtMenu, UINT wFlags)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if( GetMenu(ptmenu->hWnd) == hPtMenu || IS_SYSTEM_MENU(ptmenu) )
|
if( GetMenu(ptmenu->hWnd) == hPtMenu || IS_SYSTEM_MENU(ptmenu) )
|
||||||
|
{
|
||||||
|
if (pos == NO_SELECTED_ITEM) return 0;
|
||||||
pmt->trackFlags |= TF_RCVD_BTN_UP;
|
pmt->trackFlags |= TF_RCVD_BTN_UP;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue