win32 interface: added HWND typecast to prevent range check errors

git-svn-id: trunk@10935 -
This commit is contained in:
vincents 2007-04-11 11:18:56 +00:00
parent a85405aa69
commit ecf88d182d

View File

@ -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;