Skip to content
Snippets Groups Projects
Commit b9e521ad authored by Peter Hutterer's avatar Peter Hutterer
Browse files

dix: fix erroneous BUG_WARN check

Check was inverted, we want to complain if evcount exceeds our target
array.
parent 4b5d4105
No related branches found
No related tags found
No related merge requests found
Pipeline #1385874 passed
......@@ -732,7 +732,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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment