LCL: fixed uninitialized result

git-svn-id: trunk@16082 -
This commit is contained in:
mattias 2008-08-16 01:49:29 +00:00
parent e2280116f1
commit ae04e7ac70

View File

@ -49,8 +49,10 @@ function TMouse.GetCursorPos : TPoint;
var
p : TPoint;
begin
WidgetSet.GetCursorPos(p);
Result := P;
if WidgetSet.GetCursorPos(p) then
Result := P
else
Result:=Point(0,0);
end;
procedure TMouse.SetCursorPos(AValue : TPoint);