blob: a25e93c39ae8a04131d481da374b985d95aafa07 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
Do a better type cast that mirrors how we generate
opaqueId in the first place. Patch by Michal Srb.
--- a/trunk/unix/xserver/hw/vnc/vncExtInit.cc
+++ b/trunk/unix/xserver/hw/vnc/vncExtInit.cc
@@ -1070,7 +1070,7 @@
{
REQUEST(xVncExtApproveConnectReq);
REQUEST_SIZE_MATCH(xVncExtApproveConnectReq);
- if (queryConnectId == (void*)stuff->opaqueId) {
+ if ((CARD32)(long)queryConnectId == stuff->opaqueId) {
for (int scr = 0; scr < screenInfo.numScreens; scr++) {
if (desktop[scr]) {
desktop[scr]->approveConnection(queryConnectId, stuff->approve,
|