mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-29 21:46:40 +00:00
Add typed resource-lookup errors for non-core resource types.
Signed-off-by: Jamey Sharp <jamey@minilop.net> Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
e291c56182
commit
c38552d115
26 changed files with 169 additions and 137 deletions
|
|
@ -422,12 +422,12 @@ ProcDbeDeallocateBackBufferName(ClientPtr client)
|
|||
dbeWindowPrivResType, client,
|
||||
DixDestroyAccess);
|
||||
if (rc != Success)
|
||||
return (rc == BadValue) ? dbeErrorBase + DbeBadBuffer : rc;
|
||||
return rc;
|
||||
|
||||
rc = dixLookupResourceByType(&val, stuff->buffer, dbeDrawableResType,
|
||||
client, DixDestroyAccess);
|
||||
if (rc != Success)
|
||||
return (rc == BadValue) ? dbeErrorBase + DbeBadBuffer : rc;
|
||||
return rc;
|
||||
|
||||
/* Make sure that the id is valid for the window.
|
||||
* This is paranoid code since we already looked up the ID by type
|
||||
|
|
@ -1672,6 +1672,8 @@ DbeExtensionInit(void)
|
|||
DbeResetProc, StandardMinorOpcode);
|
||||
|
||||
dbeErrorBase = extEntry->errorBase;
|
||||
SetResourceTypeErrorValue(dbeWindowPrivResType, dbeErrorBase + DbeBadBuffer);
|
||||
SetResourceTypeErrorValue(dbeDrawableResType, dbeErrorBase + DbeBadBuffer);
|
||||
|
||||
} /* DbeExtensionInit() */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue