mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 20:59:12 +02:00
win32 interface: added HWND typecast to prevent range check errors
git-svn-id: trunk@10935 -
This commit is contained in:
parent
a85405aa69
commit
ecf88d182d
@ -1120,7 +1120,7 @@ begin
|
||||
lWinControl := GetWindowInfo(HWND(LParam))^.WinControl;
|
||||
// buddy controls use 'awincontrol' to designate associated wincontrol
|
||||
if lWinControl = nil then
|
||||
lWinControl := GetWindowInfo(LParam)^.AWinControl;
|
||||
lWinControl := GetWindowInfo(HWND(LParam))^.AWinControl;
|
||||
if lWinControl is TCustomButton then
|
||||
case HIWORD(WParam) of
|
||||
BN_CLICKED: LMessage.Msg := LM_CLICKED;
|
||||
|
Loading…
Reference in New Issue
Block a user