Check maximum supported version in Client::Registry
Ensure that we do not connect to a version which our client library does not support. If we would allow higher versions we would run the risk that the wayland library calls into not existing callbacks.
This commit is contained in:
parent
4d77c197a9
commit
2bef3d08ef
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ void TestWaylandRegistry::testCreate()
|
|||
/* registry should now about the interface now */ \
|
||||
QVERIFY(registry.hasInterface(interface)); \
|
||||
QVERIFY(!registry.bindMethod(name+1, version)); \
|
||||
QVERIFY(!registry.bindMethod(name, version+1)); \
|
||||
QVERIFY(registry.bindMethod(name, version+1)); \
|
||||
auto *c = registry.bindMethod(name, version); \
|
||||
QVERIFY(c); \
|
||||
destroyFunction(c); \
|
||||
|
|
Loading…
Reference in a new issue