XACE: Correct some protocol error values in the colormap routines.

This commit is contained in:
Eamon Walsh 2008-02-07 20:14:16 -05:00 committed by Eamon Walsh
parent 31934132a4
commit de16a8c530

View File

@ -2537,7 +2537,7 @@ ProcFreeColormap(ClientPtr client)
else
{
client->errorValue = stuff->id;
return rc;
return (rc == BadValue) ? BadColor : rc;
}
}
@ -2566,7 +2566,7 @@ ProcCopyColormapAndFree(ClientPtr client)
else
{
client->errorValue = stuff->srcCmap;
return rc;
return (rc == BadValue) ? BadColor : rc;
}
}
@ -2658,7 +2658,7 @@ ProcListInstalledColormaps(ClientPtr client)
xfree(preply);
rc = client->noClientException;
out:
return (rc == BadValue) ? BadColor : rc;
return rc;
}
int