Browse Source

Do a better type cast that mirrors how we generate

opaqueId in the first place. Patch by Michal Srb.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5135 3789f03b-4d11-0410-bbf8-ca57d06f2519
tags/v1.3.90
Pierre Ossman 10 years ago
parent
commit
5e711faec0
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      unix/xserver/hw/vnc/vncExtInit.cc

+ 1
- 1
unix/xserver/hw/vnc/vncExtInit.cc View File

@@ -1070,7 +1070,7 @@ static int ProcVncExtApproveConnect(ClientPtr client)
{
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,

Loading…
Cancel
Save