mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-08 12:59:53 +02:00
LCL-Win32: Prevent a range error when assigning a menu handle. Issue #33102.
git-svn-id: trunk@57200 -
This commit is contained in:
parent
691e9239a3
commit
324b3ed0ad
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user