Commit 324b3ed0 authored by Juha Manninen's avatar Juha Manninen
Browse files

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

git-svn-id: trunk@57200 -
parent 691e9239
......@@ -458,7 +458,7 @@ begin
MenuInfo.fMask := MIIM_DATA;
if ByPosition then
Menu := LParam
Menu := HMENU(LParam)
Menu := GetMenu(Window);
if GetMenuItemInfo(Menu, LOWORD(Integer(WParam)), ByPosition, @MenuInfo) then
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