carbon: fix range check error by initializing zero values. #28380. patch by C Western

git-svn-id: trunk@49579 -
This commit is contained in:
dmitry 2015-08-01 03:31:26 +00:00
parent d99ceba335
commit 5497dfc55a

View File

@ -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),