LCL carbon: fixed error during mouse wheel

git-svn-id: trunk@13832 -
This commit is contained in:
tombo 2008-01-22 13:44:16 +00:00
parent 7e4fdbb9ab
commit 2384804e4d

View File

@ -88,12 +88,12 @@ const
var var
MouseButton: EventMouseButton; MouseButton: EventMouseButton;
begin begin
Result := 1; Result := 0;
if OSError( if OSError(
GetEventParameter(AEvent, kEventParamMouseButton, typeMouseButton, nil, GetEventParameter(AEvent, kEventParamMouseButton, typeMouseButton, nil,
SizeOf(MouseButton), nil, @MouseButton), SizeOf(MouseButton), nil, @MouseButton),
SName, SGetEvent, 'kEventParamMouseButton') then Exit; SName, SGetEvent, 'kEventParamMouseButton', eventParameterNotFoundErr) then Exit;
Result := MouseButton; Result := MouseButton;
end; end;