diff options
author | Jan Grulich <jgrulich@redhat.com> | 2018-11-20 10:44:26 +0100 |
---|---|---|
committer | Jan Grulich <jgrulich@redhat.com> | 2018-11-20 10:44:26 +0100 |
commit | 46f718f6472f87fa26633346a4b343a51b0c7f7a (patch) | |
tree | 27b2b957eebad1ecfc66635b00832d470d08a1bd /unix/xserver/hw/vnc/xvnc.c | |
parent | 8105be9f317767f2c98d874bcece333e47d2e345 (diff) | |
download | tigervnc-46f718f6472f87fa26633346a4b343a51b0c7f7a.tar.gz tigervnc-46f718f6472f87fa26633346a4b343a51b0c7f7a.zip |
Check correct return code
Diffstat (limited to 'unix/xserver/hw/vnc/xvnc.c')
-rw-r--r-- | unix/xserver/hw/vnc/xvnc.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/unix/xserver/hw/vnc/xvnc.c b/unix/xserver/hw/vnc/xvnc.c index 3b4d2f31..c845ebc4 100644 --- a/unix/xserver/hw/vnc/xvnc.c +++ b/unix/xserver/hw/vnc/xvnc.c @@ -766,10 +766,13 @@ vfbUninstallColormap(ColormapPtr pmap) curpmap = (ColormapPtr) LookupIDByType(pmap->pScreen->defColormap, RT_COLORMAP); #else - dixLookupResourceByType((void * *) &curpmap, pmap->pScreen->defColormap, - RT_COLORMAP, serverClient, DixUnknownAccess); + int rc = dixLookupResourceByType((void * *) &curpmap, pmap->pScreen->defColormap, + RT_COLORMAP, serverClient, DixUnknownAccess); + if (rc != Success) + ErrorF("Failed to uninstall color map\n"); + else #endif - (*pmap->pScreen->InstallColormap)(curpmap); + (*pmap->pScreen->InstallColormap)(curpmap); } } } |