mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-06-07 06:28:19 +02:00
randr/rrsdispatch: reject invalid format in SProcRRChangeProviderProperty
No real effect here since we check stuff->format early in ProcRRChangeProviderProperty anyway. But this just makes it a bit more obvious (and more consistent with other functions). Assisted-by: Claude:claude-claude-opus-4-6 Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2200>
This commit is contained in:
parent
1f123a264b
commit
cbe50578f8
1 changed files with 3 additions and 0 deletions
|
|
@ -519,6 +519,9 @@ SProcRRChangeProviderProperty(ClientPtr client)
|
|||
case 32:
|
||||
SwapRestL(stuff);
|
||||
break;
|
||||
default:
|
||||
client->errorValue = stuff->format;
|
||||
return BadValue;
|
||||
}
|
||||
return ProcRandrVector[stuff->randrReqType] (client);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue