LCL-Win32: Prevent a range error when assigning a menu handle. Issue #33102.

git-svn-id: trunk@57200 -
This commit is contained in:
juha 2018-01-31 22:15:16 +00:00
parent 691e9239a3
commit 324b3ed0ad

View File

@ -458,7 +458,7 @@ begin
MenuInfo.fMask := MIIM_DATA;
if ByPosition then
Menu := LParam
Menu := HMENU(LParam)
else
Menu := GetMenu(Window);
if GetMenuItemInfo(Menu, LOWORD(Integer(WParam)), ByPosition, @MenuInfo) then