mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-20 17:40:41 +02:00
dix: fix erroneous BUG_RETURN check
Check was inverted, we want to complain if evcount exceeds our target array. Fixes:219c54b8a3("dix: fix DeviceStateNotify event calculation") (cherry picked from commit2bca68f41b) Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1895>
This commit is contained in:
parent
1119ea220a
commit
a50e6a2e33
1 changed files with 1 additions and 1 deletions
|
|
@ -731,7 +731,7 @@ DeliverStateNotifyEvent(DeviceIntPtr dev, WindowPtr win)
|
|||
evcount += ((nval - 3) + 6)/6;
|
||||
}
|
||||
|
||||
BUG_RETURN(evcount <= ARRAY_SIZE(sev));
|
||||
BUG_RETURN(evcount > ARRAY_SIZE(sev));
|
||||
|
||||
FixDeviceStateNotify(dev, ev, k, b, v, first);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue