present: Fix missing byte swaps in sproc_present_pixmap()

sproc_present_pixmap() was missing byte swaps the variable-length
xPresentNotify array after the fixed header was not
byte-swapped at all (each entry has window and serial CARD32 fields).

Fixes: a5ac3c8712 ("present: add missing byte swapping for various fields")

Assisted-by: Claude:claude-claude-opus-4-6
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2202>
This commit is contained in:
Peter Hutterer 2026-04-18 09:48:20 +10:00
parent b243ef9bc2
commit 925edb6c9e

View file

@ -365,6 +365,9 @@ sproc_present_pixmap(ClientPtr client)
swapll(&stuff->target_msc);
swapll(&stuff->divisor);
swapll(&stuff->remainder);
SwapRestL(stuff);
return (*proc_present_vector[stuff->presentReqType]) (client);
}