mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 21:09:27 +02:00
QT5: fixed uninitialized Result when getting WheelScrollLines
(cherry picked from commit 61f292751a
)
This commit is contained in:
parent
4180b62693
commit
7f53ea8eb1
@ -7170,6 +7170,7 @@ var
|
||||
AScreen: QScreenH;
|
||||
R: TRect;
|
||||
begin
|
||||
Result:=True;
|
||||
case uiAction of
|
||||
SPI_GETWHEELSCROLLLINES: PDword(pvPAram)^ := QApplication_wheelScrollLines;
|
||||
SPI_GETWORKAREA:
|
||||
@ -7177,7 +7178,6 @@ begin
|
||||
AScreen := QGuiApplication_primaryScreen();
|
||||
QScreen_availableGeometry(AScreen, @R);
|
||||
TRect(pvParam^) := R;
|
||||
Result:=True;
|
||||
end;
|
||||
else
|
||||
Result := False;
|
||||
|
Loading…
Reference in New Issue
Block a user