XACE: Correct some protocol error values in the colormap routines.
This commit is contained in:
parent
31934132a4
commit
de16a8c530
|
@ -2537,7 +2537,7 @@ ProcFreeColormap(ClientPtr client)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
client->errorValue = stuff->id;
|
client->errorValue = stuff->id;
|
||||||
return rc;
|
return (rc == BadValue) ? BadColor : rc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2566,7 +2566,7 @@ ProcCopyColormapAndFree(ClientPtr client)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
client->errorValue = stuff->srcCmap;
|
client->errorValue = stuff->srcCmap;
|
||||||
return rc;
|
return (rc == BadValue) ? BadColor : rc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2658,7 +2658,7 @@ ProcListInstalledColormaps(ClientPtr client)
|
||||||
xfree(preply);
|
xfree(preply);
|
||||||
rc = client->noClientException;
|
rc = client->noClientException;
|
||||||
out:
|
out:
|
||||||
return (rc == BadValue) ? BadColor : rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in New Issue