xace: add hooks + new access codes: XF86-Bigfont extension

This commit is contained in:
Eamon Walsh 2007-09-20 13:06:38 -04:00 committed by Eamon Walsh
parent f6532a81ee
commit a247886b08

View File

@ -445,10 +445,10 @@ ProcXF86BigfontQueryFont(
#endif
client->errorValue = stuff->id; /* EITHER font or gc */
pFont = (FontPtr)SecurityLookupIDByType(client, stuff->id, RT_FONT,
DixReadAccess);
DixGetAttrAccess);
if (!pFont) {
GC *pGC = (GC *) SecurityLookupIDByType(client, stuff->id, RT_GC,
DixReadAccess);
DixGetAttrAccess);
if (!pGC) {
client->errorValue = stuff->id;
return BadFont; /* procotol spec says only error is BadFont */