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:
Peter Hutterer 2026-04-17 10:33:14 +10:00 committed by Marge Bot
parent 1f123a264b
commit cbe50578f8

View file

@ -519,6 +519,9 @@ SProcRRChangeProviderProperty(ClientPtr client)
case 32:
SwapRestL(stuff);
break;
default:
client->errorValue = stuff->format;
return BadValue;
}
return ProcRandrVector[stuff->randrReqType] (client);
}