mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00: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") Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1868> (cherry picked from commit2bca68f41b)
This commit is contained in:
committed by
Alan Coopersmith
parent
4dc7e77cff
commit
95458e99c0
@@ -729,7 +729,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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user