mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2026-01-06 12:41:01 +01:00
carbon: fix range check error by initializing zero values. #28380. patch by C Western
git-svn-id: trunk@49579 -
This commit is contained in:
parent
d99ceba335
commit
5497dfc55a
@ -99,6 +99,7 @@ const
|
||||
var
|
||||
MousePoint: HIPoint;
|
||||
begin
|
||||
Result:=Classes.Point(0,0); // Force sane value if mouse location not found
|
||||
if OSError(
|
||||
GetEventParameter(AEvent, kEventParamWindowMouseLocation, typeHIPoint, nil,
|
||||
SizeOf(MousePoint), nil, @MousePoint),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user