summaryrefslogtreecommitdiff
path: root/mi/micmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mi/micmap.c')
-rw-r--r--mi/micmap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mi/micmap.c b/mi/micmap.c
index 6318d6745..1d26a5232 100644
--- a/mi/micmap.c
+++ b/mi/micmap.c
@@ -87,8 +87,10 @@ miUninstallColormap(ColormapPtr pmap)
{
if (pmap->mid != pmap->pScreen->defColormap)
{
- curpmap = (ColormapPtr) LookupIDByType(pmap->pScreen->defColormap,
- RT_COLORMAP);
+ dixLookupResourceByType((pointer *)&curpmap,
+ pmap->pScreen->defColormap,
+ RT_COLORMAP, serverClient,
+ DixUseAccess);
(*pmap->pScreen->InstallColormap)(curpmap);
}
}